feat : wx login
This commit is contained in:
19
app/Constants/ApiCode.php
Normal file
19
app/Constants/ApiCode.php
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user