Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
newShopBack
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
newshop
newShopBack
Commits
862bd779
Commit
862bd779
authored
Nov 12, 2019
by
郭勇志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swagger路径
parent
dcd55d5e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
swagger.yaml
backend/web/swagger-yaml/v1/swagger.yaml
+1
-0
No files found.
backend/web/swagger-yaml/v1/swagger.yaml
0 → 100644
View file @
862bd779
{
"
openapi"
:
"
3.0.0"
,
"
info"
:{
"
title"
:
"
\u540e\u53f0\u63a5\u53e3
v1
\u7248
"
,
"
version"
:
"
v1"
},
"
servers"
:[{
"
url"
:
"
\
/guoyongzhi
\
/weiShopNew"
,
"
description"
:
"
Api
server"
}],
"
paths"
:{
"
\
/backend
\
/web
\
/v1
\
/rbacuser
\
/rbac-users
\
/login"
:{
"
post"
:{
"
tags"
:[
"
\u7528\u6237
&
\u5458\u5de5\u63a5\u53e3
"
],
"
summary"
:
"
\u540e\u53f0\u767b\u9646\u63a5\u53e3
"
,
"
description"
:
"
\u540e\u53f0\u767b\u9646\u63a5\u53e3
"
,
"
operationId"
:
"
backend
\\
controllers
\\
v1
\\
rbacuser
\\
RbacUserController::actionLogin"
,
"
requestBody"
:{
"
content"
:{
"
application
\
/json"
:{
"
schema"
:{
"
properties"
:{
"
CODE"
:{
"
type"
:
"
string"
},
"
PASSWORD"
:{
"
type"
:
"
string"
}},
"
type"
:
"
object"
,
"
example"
:{
"
CODE"
:
1234567890
,
"
PASSWORD"
:
"
123"
}}}}},
"
responses"
:{
"
200"
:{
"
description"
:
"
\u6210\u529f\u65f6\u8fd4\u56de
access-token"
}}}},
"
\
/backend
\
/web
\
/v1
\
/shop
\
/branch
\
/branches
\
/test"
:{
"
get"
:{
"
tags"
:[
"
swagger
\u4e8b\u4f8b
"
],
"
summary"
:
"
swagger
\u4e8b\u4f8b
"
,
"
description"
:
"
swagger
\u4e8b\u4f8b
"
,
"
operationId"
:
"
returnGetParam"
,
"
parameters"
:[{
"
name"
:
"
param"
,
"
in"
:
"
query"
,
"
required"
:
true
,
"
schema"
:{
"
type"
:
"
string"
}}],
"
responses"
:{
"
200"
:{
"
description"
:
"
OK
\u3002\u4e00\u5207\u6b63\u5e38
"
},
"
201"
:{
"
description"
:
"
\u54cd\u5e94
POST
\u8bf7\u6c42\u65f6\u6210\u529f\u521b\u5efa\u4e00\u4e2a\u8d44\u6e90
"
},
"
204"
:{
"
description"
:
"
\u8be5\u8bf7\u6c42\u88ab\u6210\u529f\u5904\u7406\uff0c\u54cd\u5e94\u4e0d\u5305\u542b\u6b63\u6587\u5185\u5bb9
(
\u7c7b\u4f3c
DELETE
\u8bf7\u6c42
)"
},
"
304"
:{
"
description"
:
"
\u8d44\u6e90\u6ca1\u6709\u88ab\u4fee\u6539\u3002\u53ef\u4ee5\u4f7f\u7528\u7f13\u5b58\u7684\u7248\u672c
"
},
"
400"
:{
"
description"
:
"
\u9519\u8bef\u7684\u8bf7\u6c42\u3002\u53ef\u80fd\u901a\u8fc7\u7528\u6237\u65b9\u9762\u7684\u591a\u79cd\u539f\u56e0\u5f15\u8d77\u7684\uff0c\u4f8b\u5982\u5728\u8bf7\u6c42\u4f53\u5185\u6709\u65e0\u6548\u7684
JSON
\u6570\u636e\uff0c\u65e0\u6548\u7684\u64cd\u4f5c\u53c2\u6570\uff0c\u7b49\u7b49
"
},
"
401"
:{
"
description"
:
"
\u9a8c\u8bc1\u5931\u8d25
"
},
"
403"
:{
"
description"
:
"
\u5df2\u7ecf\u7ecf\u8fc7\u8eab\u4efd\u9a8c\u8bc1\u7684\u7528\u6237\u4e0d\u5141\u8bb8\u8bbf\u95ee\u6307\u5b9a\u7684
API
\u672b\u7aef
"
},
"
404"
:{
"
description"
:
"
\u6240\u8bf7\u6c42\u7684\u8d44\u6e90\u4e0d\u5b58\u5728\u3002
"
},
"
405"
:{
"
description"
:
"
\u4e0d\u88ab\u5141\u8bb8\u7684\u65b9\u6cd5\u3002
\u8bf7\u68c0\u67e5
Allow
header
\u5141\u8bb8\u7684
HTTP
\u65b9\u6cd5
"
},
"
415"
:{
"
description"
:
"
\u4e0d\u652f\u6301\u7684\u5a92\u4f53\u7c7b\u578b\u3002
\u6240\u8bf7\u6c42\u7684\u5185\u5bb9\u7c7b\u578b\u6216\u7248\u672c\u53f7\u662f\u65e0\u6548\u7684
"
},
"
422"
:{
"
description"
:
"
\u6570\u636e\u9a8c\u8bc1\u5931\u8d25
(
\u4f8b\u5982\uff0c\u54cd\u5e94\u4e00\u4e2a
POST
\u8bf7\u6c42
)
\u3002
\u8bf7\u68c0\u67e5\u54cd\u5e94\u4f53\u5185\u8be6\u7ec6\u7684\u9519\u8bef\u6d88\u606f
"
},
"
429"
:{
"
description"
:
"
\u8bf7\u6c42\u8fc7\u591a\u3002
\u7531\u4e8e\u9650\u901f\u8bf7\u6c42\u88ab\u62d2\u7edd
"
},
"
500"
:{
"
description"
:
"
\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\u3002
\u8fd9\u53ef\u80fd\u662f\u7531\u4e8e\u5185\u90e8\u7a0b\u5e8f\u9519\u8bef\u5f15\u8d77\u7684
"
}},
"
security"
:[{
"
Authorization"
:[]}]}},
"
\
/backend
\
/web
\
/v1
\
/shopuser
\
/shop-users
\
/employee-list"
:{
"
get"
:{
"
tags"
:[
"
\u7528\u6237
&
\u5458\u5de5\u63a5\u53e3
"
],
"
summary"
:
"
\u5458\u5de5\u4fe1\u606f\u5217\u8868
"
,
"
description"
:
"
\u5458\u5de5\u4fe1\u606f\u5217\u8868
"
,
"
operationId"
:
"
returnGetParam"
,
"
parameters"
:[{
"
name"
:
"
page"
,
"
in"
:
"
query"
,
"
schema"
:{
"
type"
:
"
int"
}},{
"
name"
:
"
NAME"
,
"
in"
:
"
query"
,
"
schema"
:{
"
type"
:
"
string"
}},{
"
name"
:
"
CODE"
,
"
in"
:
"
query"
,
"
schema"
:{
"
type"
:
"
string"
}},{
"
name"
:
"
MOBILEPHONE"
,
"
in"
:
"
query"
,
"
schema"
:{
"
type"
:
"
string"
}},{
"
name"
:
"
EMPLOYEE_BRANCH_GUID"
,
"
in"
:
"
query"
,
"
schema"
:{
"
type"
:
"
string"
}}],
"
responses"
:{
"
200"
:{
"
description"
:
"
\r\n
*
GUID:
\u7528\u6237
GUID,
\r\n
*
EMPLOYEE_CODE:
\u5458\u5de5\u7f16\u53f7
,
\r\n
*
MOBILE_PHONE:
\u624b\u673a\u53f7
,
\r\n
*
EMPLOYEE_BRANCH_GUID:
\u7528\u6237\u6240\u5c5e\u95e8\u5e97
GUID"
}},
"
security"
:[{
"
Authorization"
:[]}]}},
"
\
/backend
\
/web
\
/v1
\
/shopuser
\
/shop-users
\
/employee-info"
:{
"
get"
:{
"
tags"
:[
"
\u7528\u6237
&
\u5458\u5de5\u63a5\u53e3
"
],
"
summary"
:
"
\u5458\u5de5\u4fe1\u606f
"
,
"
description"
:
"
\u67d0\u5458\u5de5\u7684\u4fe1\u606f\u8be6\u60c5
"
,
"
operationId"
:
"
returnGetParam"
,
"
parameters"
:[{
"
name"
:
"
id"
,
"
in"
:
"
query"
,
"
required"
:
true
,
"
schema"
:{
"
type"
:
"
string"
}}],
"
responses"
:{
"
200"
:{
"
description"
:
"
\r\n
*
GUID:
\u7528\u6237
GUID
\uff0c\r\n
*
EMPLOYEE_CODE:
\u5458\u5de5\u7f16\u53f7
,
\r\n
*
MOBILE_PHONE:
\u624b\u673a\u53f7
,
\r\n
*
AGE:
\u5e74\u9f84
,
\r\n
*
CONTACT_SEX:
\u6027\u522b
,
\r\n
*
MEMBER_NO:
\u4f1a\u5458\u5361\u53f7
,
\r\n
*
IS_DISTRIBUTOR:
\u5206\u9500\u5546\u6807\u8bc6\uff08
0
\uff1a\u5426\uff0c
1
\uff1a\u662f\uff09
,
\r\n
*
EMPLOYEE_IS_MANAGER:
\u5458\u5de5\u662f\u5426\u4e3a\u95e8\u5e97\u5e97\u957f
,
\r\n
*
EMPLOYEE_BRANCH_GUID:
\u7528\u6237\u6240\u5c5e\u95e8\u5e97
GUID"
}},
"
security"
:[{
"
Authorization"
:[]}]}},
"
\
/backend
\
/web
\
/v1
\
/shopuser
\
/shop-user-membergrades"
:{
"
get"
:{
"
tags"
:[
"
\u7528\u6237
&
\u5458\u5de5\u63a5\u53e3
"
],
"
summary"
:
"
\u7528\u6237\u7ec4\u5217\u8868\u63a5\u53e3
(
\u59da\u4e66\u4fa0
)"
,
"
description"
:
"
\u7528\u6237\u7ec4\u5217\u8868\u63a5\u53e3
"
,
"
operationId"
:
"
backend
\\
controllers
\\
v1
\\
shopuser
\\
ShopUserMembergradeController::actionIndex"
,
"
parameters"
:[{
"
name"
:
"
page"
,
"
in"
:
"
query"
,
"
description"
:
"
\u5206\u9875\u9875\u7801
"
,
"
required"
:
false
,
"
schema"
:{
"
type"
:
"
string"
}},{
"
name"
:
"
pageSize"
,
"
in"
:
"
query"
,
"
description"
:
"
\u5206\u9875\u5927\u5c0f
"
,
"
required"
:
false
,
"
schema"
:{
"
type"
:
"
string"
}}],
"
responses"
:{
"
200"
:{
"
description"
:
"
success"
}},
"
security"
:[{
"
Authorization"
:[]}]},
"
post"
:{
"
tags"
:[
"
\u7528\u6237
&
\u5458\u5de5\u63a5\u53e3
"
],
"
summary"
:
"
\u6dfb\u52a0\u7528\u6237\u7ec4\u63a5\u53e3
(
\u59da\u4e66\u4fa0
)"
,
"
description"
:
"
\u6dfb\u52a0\u7528\u6237\u7ec4\u63a5\u53e3
"
,
"
operationId"
:
"
backend
\\
controllers
\\
v1
\\
shopuser
\\
ShopUserMembergradeController::actionCreate"
,
"
requestBody"
:{
"
content"
:{
"
application
\
/json"
:{
"
schema"
:{
"
properties"
:{
"
NAME"
:{
"
type"
:
"
string"
},
"
IS_DEFAULT"
:{
"
type"
:
"
string"
},
"
GRADE_PERCENT"
:{
"
type"
:
"
float"
},
"
IS_SETRANGE"
:{
"
type"
:
"
string"
},
"
MONEY_POINT_SRATE"
:{
"
type"
:
"
float"
}},
"
type"
:
"
object"
,
"
example"
:{
"
NAME"
:
"
\u7528\u6237\u7ec4
A"
,
"
IS_DEFAULT"
:
"
1"
,
"
GRADE_PERCENT"
:
2.22
,
"
IS_SETRANGE"
:
"
0"
,
"
MONEY_POINT_SRATE"
:
23.1
}}}}},
"
responses"
:{
"
200"
:{
"
description"
:
"
\u6210\u529f\u65f6\u8fd4\u56de
access-token"
}},
"
security"
:[{
"
Authorization"
:[]}]}},
"
\
/backend
\
/web
\
/v1
\
/shopuser
\
/shop-user-membergrades
\
/{id}"
:{
"
get"
:{
"
tags"
:[
"
\u7528\u6237
&
\u5458\u5de5\u63a5\u53e3
"
],
"
summary"
:
"
\u7528\u6237\u7ec4\u8be6\u60c5\u63a5\u53e3
(
\u59da\u4e66\u4fa0
)"
,
"
description"
:
"
\u7528\u6237\u7ec4\u8be6\u60c5\u63a5\u53e3
"
,
"
operationId"
:
"
backend
\\
controllers
\\
v1
\\
shopuser
\\
ShopUserMembergradeController::actionView"
,
"
parameters"
:[{
"
name"
:
"
id"
,
"
in"
:
"
path"
,
"
description"
:
"
\u7528\u6237\u7ec4
id"
,
"
required"
:
true
,
"
schema"
:{
"
type"
:
"
string"
}}],
"
responses"
:{
"
200"
:{
"
description"
:
"
success"
}},
"
security"
:[{
"
Authorization"
:[]}]},
"
put"
:{
"
tags"
:[
"
\u7528\u6237
&
\u5458\u5de5\u63a5\u53e3
"
],
"
summary"
:
"
\u4fee\u6539\u7528\u6237\u7ec4\u63a5\u53e3
(
\u59da\u4e66\u4fa0
)"
,
"
description"
:
"
\u4fee\u6539\u7528\u6237\u7ec4\u63a5\u53e3
"
,
"
operationId"
:
"
backend
\\
controllers
\\
v1
\\
shopuser
\\
ShopUserMembergradeController::actionUpdate"
,
"
parameters"
:[{
"
name"
:
"
id"
,
"
in"
:
"
path"
,
"
description"
:
"
\u7528\u6237\u7ec4
id"
,
"
required"
:
true
,
"
schema"
:{
"
type"
:
"
string"
}}],
"
requestBody"
:{
"
content"
:{
"
application
\
/json"
:{
"
schema"
:{
"
properties"
:{
"
NAME"
:{
"
type"
:
"
string"
},
"
IS_DEFAULT"
:{
"
type"
:
"
string"
},
"
GRADE_PERCENT"
:{
"
type"
:
"
float"
},
"
IS_SETRANGE"
:{
"
type"
:
"
string"
},
"
MONEY_POINT_SRATE"
:{
"
type"
:
"
float"
}},
"
type"
:
"
object"
,
"
example"
:{
"
NAME"
:
"
\u4fee\u6539\u540e\u7528\u6237\u7ec4
A"
,
"
IS_DEFAULT"
:
"
1"
,
"
GRADE_PERCENT"
:
2.22
,
"
IS_SETRANGE"
:
"
0"
,
"
MONEY_POINT_SRATE"
:
23.1
}}}}},
"
responses"
:{
"
200"
:{
"
description"
:
"
\u6210\u529f\u65f6\u8fd4\u56de
access-token"
}},
"
security"
:[{
"
Authorization"
:[]}]}},
"
\
/backend
\
/web
\
/v1
\
/shopuser
\
/user-complains
\
/user-complain"
:{
"
get"
:{
"
tags"
:[
"
\u7528\u6237
&
\u5458\u5de5\u63a5\u53e3
"
],
"
summary"
:
"
\u7559\u8a00\u4fe1\u606f\u5217\u8868
(
\u5b59\u78ca
)"
,
"
description"
:
"
\u7559\u8a00\u4fe1\u606f\u5217\u8868
"
,
"
operationId"
:
"
UserComplain"
,
"
parameters"
:[{
"
name"
:
"
phone"
,
"
in"
:
"
query"
,
"
schema"
:{
"
type"
:
"
string"
}}],
"
responses"
:{
"
200"
:{
"
description"
:
"
OK
\u3002\u4e00\u5207\u6b63\u5e38
"
}},
"
security"
:[{
"
Authorization"
:[]}]}},
"
\
/backend
\
/web
\
/v1
\
/shopuser
\
/user-departments
\
/department"
:{
"
get"
:{
"
tags"
:[
"
\u7528\u6237
&
\u5458\u5de5\u63a5\u53e3
"
],
"
summary"
:
"
\u90e8\u95e8\u4fe1\u606f\u5217\u8868
(
\u5b59\u78ca
)"
,
"
description"
:
"
\u90e8\u95e8\u4fe1\u606f\u5217\u8868
"
,
"
operationId"
:
"
Department"
,
"
parameters"
:[{
"
name"
:
"
code"
,
"
in"
:
"
query"
,
"
schema"
:{
"
type"
:
"
string"
}},{
"
name"
:
"
name"
,
"
in"
:
"
query"
,
"
schema"
:{
"
type"
:
"
string"
}}],
"
responses"
:{
"
200"
:{
"
description"
:
"
OK
\u3002\u4e00\u5207\u6b63\u5e38
"
}},
"
security"
:[{
"
Authorization"
:[]}]}}},
"
components"
:{
"
securitySchemes"
:{
"
Authorization"
:{
"
type"
:
"
apiKey"
,
"
name"
:
"
Authorization"
,
"
in"
:
"
header"
}}}}
\ 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