Commit fb798a19 by 王召彬

test

parent 0c9656ed
<?php
namespace Hdll\Services\Store\Enum;
class StoreEnum
{
const E5001 = ['code'=>400, 'errCode'=>5001, 'msg'=>'客户端传参错误'];
const E5002 = ['code'=>404, 'errCode'=>5002, 'msg'=>'查询不到用户数据'];
const E5003 = ['code'=>401, 'errCode'=>5003, 'msg'=>'无权限操作'];
const E5004 = ['code'=>404, 'errCode'=>5004, 'msg'=>'数据不存在'];
const E5102 = ['code'=>400, 'errCode'=>5102, 'msg'=>'手机号不正确'];
const E5201 = ['code'=>400, 'errCode'=>5201, 'msg'=>'店铺名称不能包含特殊符号'];
const E5202 = ['code'=>400, 'errCode'=>5202, 'msg'=>'xxxx'];
const E5203 = ['code'=>400, 'errCode'=>5203, 'msg'=>'xxxx'];
const E5204 = ['code'=>400, 'errCode'=>5204, 'msg'=>'xxxx'];
const E5205 = ['code'=>400, 'errCode'=>5205, 'msg'=>'xxxx'];
public function getError($code) {
$reflect = new \ReflectionClass(ErrCode::class);
return $reflect->getConstant('E'.$code);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment