Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
fb798a19
Commit
fb798a19
authored
Jul 20, 2018
by
王召彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
0c9656ed
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
src/Store/Enum/StoreEnum.php
+25
-0
No files found.
src/Store/Enum/StoreEnum.php
0 → 100644
View file @
fb798a19
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment