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.

22 lines
560 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
namespace App\Helpers;
class StarterResponseCode
{
/*
* code没有约定俗成的通用规范
* 目前只定义错误代码
* 当前规则5位数字的返回建议前两位分配给业务模块后面三位分配给具体的消息
*/
const JWT_AUTH_FAIL = [40001, "TOKEN鉴权失败"];
const LOGIN_FAIL = [40002, "账号密码不正确"];
const RBAC_FAIL = [40003, "RBAC鉴权失败"];
// 参数错误
const START_ERROR_PARAMETER = 30001;
// 业务错误
const START_ERROR_BUSINESS = 30002;
}