docs: 增加修改密码和获取项目成员列表返回示例

This commit is contained in:
李放 2017-07-14 18:08:05 +08:00
parent e896cc5d69
commit d222205d20
6 changed files with 33 additions and 8 deletions

View File

@ -0,0 +1,16 @@
{
"errcode": 0,
"errmsg": "success",
"data": [
{
"_id": 101,
"email": "admin@admin.com",
"password": "e00084747ecba89837affe8a048e83c751e44209",
"passsalt": "fmf3kytyysc4swwuqc15rk9",
"role": "admin",
"add_time": 1499932673,
"up_time": 1499932673,
"__v": 0
}
]
}

View File

@ -0,0 +1,9 @@
{
"errcode": 0,
"errmsg": "success",
"data": {
"n": 1,
"nModified": 1,
"ok": 1
}
}

View File

@ -76,7 +76,7 @@ class projectController extends baseController {
}
/**
* 添加项目
* 添加项目成员
* @interface /project/add_member
* @method POST
* @category project
@ -108,7 +108,7 @@ class projectController extends baseController {
}
/**
* 添加项目
* 删除项目成员
* @interface /project/del_member
* @method POST
* @category project
@ -142,7 +142,7 @@ class projectController extends baseController {
/**
* 获取项目成员列表
* @interface /project/get_member_list
* @interface /project/get_member_list.json
* @method GET
* @category project
* @foldnumber 10

View File

@ -56,7 +56,7 @@ createAction('project', 'up', 'post', 'up')
createAction('project', 'del', 'post', 'del')
createAction('project', 'add_member', 'post', 'addMember')
createAction('project', 'del_member', 'post', 'delMember')
createAction('project', 'get_member_list', 'get', 'getMemberList')
createAction('project', 'get_member_list.json', 'get', 'getMemberList')
createAction('project', 'search', 'get', 'search')
//interface

View File

@ -201,7 +201,7 @@ var projectController = function (_baseController) {
return add;
}()
/**
* 添加项目
* 添加项目成员
* @interface /project/add_member
* @method POST
* @category project
@ -285,7 +285,7 @@ var projectController = function (_baseController) {
return addMember;
}()
/**
* 添加项目
* 删除项目成员
* @interface /project/del_member
* @method POST
* @category project
@ -371,7 +371,7 @@ var projectController = function (_baseController) {
/**
* 获取项目成员列表
* @interface /project/get_member_list
* @interface /project/get_member_list.json
* @method GET
* @category project
* @foldnumber 10

View File

@ -82,7 +82,7 @@ createAction('project', 'up', 'post', 'up');
createAction('project', 'del', 'post', 'del');
createAction('project', 'add_member', 'post', 'addMember');
createAction('project', 'del_member', 'post', 'delMember');
createAction('project', 'get_member_list', 'get', 'getMemberList');
createAction('project', 'get_member_list.json', 'get', 'getMemberList');
createAction('project', 'search', 'get', 'search');
//interface