feat : wx login

This commit is contained in:
2024-11-25 18:02:40 +08:00
parent 865ff6eb7e
commit 9c175fdb78
8 changed files with 175 additions and 9 deletions

19
app/Constants/ApiCode.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
namespace App\Constants;
use Hyperf\Constants\Annotation\Constants;
#[Constants]
class ApiCode extends ReturnCode
{
/**
* @Message("登录失败")
*/
public const int LOGIN_ERROR = 10001;
/**
* @Message("登录token已失效")
*/
public const int LOGIN_TOKEN_ERROR = 10002;
}