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;
}

View File

@@ -5,8 +5,8 @@ namespace App\Constants\Common;
class ThirdCode
{
/**
*
* 第三方登录类型 1=微信登录
*/
const WX_LOGIN = 1;
const int WX_LOGIN = 1;
}