Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
specificationAPI
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
开发共享交流平台
specificationAPI
Commits
448dd577
Commit
448dd577
authored
Feb 28, 2019
by
Lanseria
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
022fb36a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
48 deletions
+10
-48
index.apib
demo/index.apib
+10
-48
index.html
demo/index.html
+0
-0
No files found.
demo/index.apib
View file @
448dd577
...
@@ -78,29 +78,13 @@ see [The Rules of Go](https://en.wikipedia.org/wiki/Rules_of_go)
...
@@ -78,29 +78,13 @@ see [The Rules of Go](https://en.wikipedia.org/wiki/Rules_of_go)
{"code":0,"msg":"success","data":true}
{"code":0,"msg":"success","data":true}
###
delete user
[POST /upms/user/delete/{id}]
用户删除
+
Parameters
+ id: `90` (int) - The id of the user.
+
Response
200
(application/json)
{"code":0,"msg":"success","data":true}
###
delete user batch
[POST /upms/user/delete/batch]
###
delete user batch
[POST /upms/user/delete/batch]
用户删除(批量)
用户删除(批量
与单个同存
)
+
Request (application/json)
+
Request (application/json)
{
[1, 2, 3, 4]
"ids" : [1, 2, 3, 4]
}
+
Response
200
(application/json)
+
Response
200
(application/json)
...
@@ -114,54 +98,32 @@ see [The Rules of Go](https://en.wikipedia.org/wiki/Rules_of_go)
...
@@ -114,54 +98,32 @@ see [The Rules of Go](https://en.wikipedia.org/wiki/Rules_of_go)
用户组织模块
用户组织模块
###
user apply
[POST /goms/
{uid}/apply/{oid}
]
###
user apply
[POST /goms/
apply
]
用户申请加入组织,加入组织理由可选放在
`request body`
里
用户申请加入组织,加入组织理由可选放在
`request body`
里
+
Parameters
+ uid: `90` (int) - 申请的用户的ID
+ oid: `90` (int) - 被申请的组织的ID
+
Request
(application/json)
{
"desc" : "我申请加入的理由"
}
+
Response
200
(application/json)
{"code":0,"msg":"success","data":true}
###
user apply
[POST /goms/review/{uid}]
组织通过与驳回请求,驳回的理由放在
`request body`
里
+
Parameters
+ uid: `90` (int) - 申请的用户的ID
+
Request (application/json)
+
Request (application/json)
{
{
"isPass": true // true 通过, false 驳回
"uid": 1,
"desc" : "驳回的理由"
"oid": 2,
"content" : "我申请加入的理由"
}
}
+
Response
200
(application/json)
+
Response
200
(application/json)
{"code":0,"msg":"success","data":true}
{"code":0,"msg":"success","data":true}
###
user
apply batch
[POST /goms/review
/batch]
###
user
pass batch
[POST /goms/review/pass
/batch]
组织
批量通过与驳回请求,ids, 是否通过, 驳回的理由放在
`request body`
里,
组织
通过(批量与单个同存),可选通过的理由放在
`request body`
里
+
Request (application/json)
+
Request (application/json)
{
{
"ids": [1, 2, 3],
"ids": [1, 2, 3],
"
isPass": true, // true 通过, false 驳回
"
status": 3, // 用来变更状态
"
desc" : "驳回
的理由"
"
content" : "通过
的理由"
}
}
+
Response
200
(application/json)
+
Response
200
(application/json)
...
...
demo/index.html
View file @
448dd577
This diff is collapsed.
Click to expand it.
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