Commit 448dd577 authored by Lanseria's avatar Lanseria

update

parent 022fb36a
......@@ -78,29 +78,13 @@ see [The Rules of Go](https://en.wikipedia.org/wiki/Rules_of_go)
{"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]
用户删除(批量)
用户删除(批量与单个同存)
+ Request (application/json)
{
"ids" : [1, 2, 3, 4]
}
[1, 2, 3, 4]
+ Response 200 (application/json)
......@@ -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`
+ 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)
{
"isPass": true // true 通过, false 驳回
"desc" : "驳回的理由"
"uid": 1,
"oid": 2,
"content" : "我申请加入的理由"
}
+ Response 200 (application/json)
{"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)
{
"ids": [1, 2, 3],
"isPass": true, // true 通过, false 驳回
"desc" : "驳回的理由"
"status": 3, // 用来变更状态
"content" : "通过的理由"
}
+ Response 200 (application/json)
......
This diff is collapsed.
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