You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
2.0 KiB
87 lines
2.0 KiB
<?php
|
|
|
|
namespace App\Constants\v3;
|
|
|
|
use Hyperf\Constants\AbstractConstants;
|
|
use Hyperf\Constants\Annotation\Constants;
|
|
|
|
/**
|
|
* @Constants
|
|
*/
|
|
class ErrorCode extends AbstractConstants
|
|
{
|
|
/************************************/
|
|
/* 应用或系统相关,参考HTTP STATUS */
|
|
/************************************/
|
|
/**
|
|
* 服务器内部错误
|
|
* @Message("服务器内部错误")
|
|
*/
|
|
const SERVER_ERROR = 500;
|
|
|
|
/************************************/
|
|
/* 订单相关 601-650 */
|
|
/************************************/
|
|
|
|
/************************************/
|
|
/* 支付相关 651-700 */
|
|
/************************************/
|
|
|
|
/************************************/
|
|
/* 用户相关 701-750 */
|
|
/************************************/
|
|
/**
|
|
* 验证码错误或已失效
|
|
* @Message("验证码错误或已失效")
|
|
*/
|
|
const INVALID_VERIFY_CODE = 701;
|
|
|
|
/**
|
|
* 电话号码绑定失败
|
|
* @Message("电话号码绑定失败")
|
|
*/
|
|
const BIND_TEL_ERROR = 702;
|
|
|
|
/**
|
|
* 电话号码解绑失败
|
|
* @Message("电话号码解绑失败")
|
|
*/
|
|
const UNBIND_TEL_ERROR = 703;
|
|
|
|
/**
|
|
* 微信登录失败:无效的code
|
|
* @Message("微信登录失败:无效的code")
|
|
*/
|
|
const WXLOGIN_INVALID_CODE = 704;
|
|
|
|
/**
|
|
* 更新失败
|
|
* @Message("更新失败")
|
|
*/
|
|
const USER_INFO_UPDATE_ERROR = 705;
|
|
|
|
/************************************/
|
|
/* 定位相关 751-800 */
|
|
/************************************/
|
|
|
|
/************************************/
|
|
/* 公共相关 1001-1100 */
|
|
/************************************/
|
|
/**
|
|
* 获取验证码失败
|
|
* @Message("获取验证码失败")
|
|
*/
|
|
const VERIFY_CODE_ERROR = 1001;
|
|
|
|
/**
|
|
* 验证码已发送,请勿重复请求
|
|
* @Message("验证码已发送,请勿重复请求")
|
|
*/
|
|
const VERIFY_CODE_SENDED = 1002;
|
|
|
|
/**
|
|
* 短信发送失败
|
|
* @Message("短信发送失败")
|
|
*/
|
|
const SMS_SEND_FAILURE = 1003;
|
|
}
|