@soszrg
2019-03-14T06:28:30.000000Z
字数 1470
阅读 369
anxin
http://121.40.214.215:8001
Authorization: token 1:d79be1d657d9a8b45f6f903620e84b06cbf225e0
登出接口(token)
接口地址
GET /api/v1/members/
请求示例
GET /api/v1/members/?page=1&page_size=10{}
请求参数说明
无
返回参数
{"meta": {"message": "info list","code": 0},"data": {"count": 1,"page_size": 10,"next": null,"previous": null,"results": [{"id": 3,"username": "fog_admin","cellphone": "18301824843","email": "123456@123.com","updated_at": "2018-11-16T11:17:50","created_at": "2018-08-30T14:45:16","role": 0},]}}
返回参数说明
| 参数 | 类型 | 说明 |
|---|---|---|
| id | int | 成员id |
| username | string | 成员名 |
| cellphone | string | 成员手机号 |
| string | 成员邮箱 | |
| role | int | 成员角色(0:安心;1:渠道商;2:运营/物业) |
| updated_at | string | 更新时间 |
| created_at | string | 创建时间 |
GET /api/v1/operate_logs/modules/
/api/v1/operate_logs/modules/{}
| 参数 | 类型 | 必须 | 说明 | 位置 |
|---|---|---|---|---|
| -- | -- | -- | -- | -- |
返回参数
{"meta": {"code": 0,"message": "operation modules"},"data": {"0": "全部","1": "创建产品","2": "修改产品","3": "删除产品","4": "登录","5": "登出"}}
返回参数说明
模块id | 模块名
GET /api/v1/operate_logs/
/api/v1/operate_logs/?operation_module=1&user_id=81{}
| 参数 | 类型 | 必须 | 说明 | 位置 |
|---|---|---|---|---|
| operation_module | int | N | 操作模块 | path |
| user_id | int | N | 用户id | path |
返回参数
{"meta": {"message": "info list","code": 0},"data": {"count": 1,"page_size": 10,"next": null,"previous": null,"results": [{"user_id": 76,"user_name": "sakai2","role": 4,"operation_module": 1,"operation": "创建产品abc","created_at": "2019-03-14T14:12:20"}]}}
返回参数说明
| 参数 | 类型 | 说明 |
|---|---|---|
| user_id | int | 用户id |
| user_name | string | 用户名 |
| operation_module | int | 操作模块 |
| operation | string | 操作内容 |
| created_at | string | 操作时间 |