docs: list接口返回示例

This commit is contained in:
李放 2017-07-18 15:22:50 +08:00
parent 461f82c7df
commit 2467556d35
2 changed files with 55 additions and 32 deletions

View File

@ -1,36 +1,35 @@
{
"errcode": 0,
"errmsg": "success",
"data": [
{
"_id": 7,
"name": "project_a1",
"desc": "tttttt",
"prd_host": "project.a1.cc",
"basepath": "/a1",
"uid": 0,
"group_id": 1,
"add_time": 1499331378,
"up_time": 1499331378,
"__v": 0,
"members": [
0
]
},
{
"_id": 8,
"name": "project_a2",
"desc": "tttttt",
"prd_host": "project.a2.cc",
"basepath": "/a1",
"uid": 0,
"group_id": 1,
"add_time": 1499331387,
"up_time": 1499331387,
"__v": 0,
"members": [
0
]
}
]
"data": {
"total": 2,
"list": [
{
"_id": 133,
"name": "project_a1",
"prd_host": "project.a2.cc",
"basepath": "/a1/",
"uid": 101,
"group_id": 101,
"add_time": 1500004234,
"up_time": 1500004234,
"__v": 0,
"env":[],
"members":["101"]
},
{
"_id": 163,
"name": "project_a2",
"prd_host": "project.a2.cc",
"basepath": "/a2/",
"uid": 101,
"group_id": 101,
"add_time": 1500006397,
"up_time": 1500006397,
"__v": 0,
"env":[],
"members":["101"]
}
]
}
}

View File

@ -0,0 +1,24 @@
{
"errcode": 0,
"errmsg": "success",
"data":{
"total": 2,
"list":[
{
"_id": 101,
"email": "admin@admin.com",
"role": "admin",
"add_time": 1499932673,
"up_time": 1499932673
},
{
"_id": 263,
"username": "2515418556",
"email": "2515418556@qq.com",
"role": "member",
"add_time": 1500023432,
"up_time": 1500024967
}
]
}
}