ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
#### 列表 ~~~[api] get:/dealer/dealer/index/index string:search#搜索关键词 number:p=1#当前页数 number:ps=20#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-08-27 12:24:35", "data": [ { "id": 12, "parent_id": 10, "username": "dealer11", "mobile": "18666868830", "sort": 0, "status": 1, "created_at": "2018-08-26 22:57:47", "updated_at": "2018-08-26 22:57:47", "status_text": "正常", "role_id": null } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 详情 ~~~[api] get:/dealer/dealer/index/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-07-14 18:31:00", "data": { "id": 1, "parent_id": 0, "username": "dealer10", "mobile": "18666868868", "sort": 0, "status": 1, "created_at": "2016-01-01 00:00:00", "updated_at": "2018-06-20 10:08:28", "status_text": "正常" } } ~~~ #### 创建 ~~~[api] post:/dealer/dealer/index/create *string:username#用户名 *string:password#密码 *string:mobile#手机号码 number:sort=0#排序 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-07-14 18:34:00", "data": [] } ~~~ #### 更新 ~~~[api] post:/dealer/dealer/index/update/id/:id string:username#用户名 string:password#密码 string:mobile#手机号码 number:sort=0#排序 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-07-14 18:34:00", "data": [] } ~~~ #### 删除 ~~~[api] post:/dealer/dealer/index/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-10 18:05:44", "data": [] } ~~~ #### 分配角色 > 顶级商家账户不可进行分配角色 ~~~[api] post:/dealer/dealer/index/allocator/id/:id *number:role_id#角色ID <<< success { "code": 1, "msg": "success", "time": "2018-01-10 18:05:44", "data": [] } ~~~