306 lines
8.0 KiB
HTTP
306 lines
8.0 KiB
HTTP
### 登录
|
|
POST {{host}}/admin/login/user
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
account=13632877014&password=123456
|
|
|
|
> {%
|
|
client.global.set("admin_token", response.body.data.token);
|
|
%}
|
|
|
|
### 权限单列表
|
|
GET {{host}}/admin/auth/menu_list
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 权限单添加
|
|
POST {{host}}/admin/auth/menu_add
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
menu_name=第二页&menu_url=/admin/second&menu_icon=fa fa-user&menu_sort=2&menu_status=1&parent_id=0
|
|
|
|
### 权限修改
|
|
POST {{host}}/admin/auth/menu_edit
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
menu_id=11&menu_name=第二页1&menu_url=/admin/second&menu_icon=fa fa-user&menu_sort=2&menu_status=1&parent_id=0
|
|
|
|
### 权限删除
|
|
GET {{host}}/admin/auth/menu_del?menu_id=1
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 权限详情
|
|
GET {{host}}/admin/auth/menu?menu_id=2
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 权限构建缓存
|
|
GET {{host}}/admin/auth/menu_build_cache
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
|
|
|
|
### 角色详情
|
|
GET {{host}}/admin/auth/role?role_id=1
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 角色列表
|
|
GET {{host}}/admin/auth/role_list?limit=10
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 角色更改状态
|
|
POST {{host}}/admin/auth/role_change_status
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
role_id=1&role_status=2
|
|
|
|
### 角色添加
|
|
POST {{host}}/admin/auth/role_add
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
role_name=测试&role_status=1&menu_ids=1,2,3,4,5,6,7,8,9&role_remark=测试
|
|
|
|
### 角色修改
|
|
POST {{host}}/admin/auth/role_edit
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
role_id=3&role_name=测试&role_status=1&menu_ids=1,2,3,4,5,6,7&role_remark=测试
|
|
|
|
|
|
|
|
### 账号添加
|
|
POST {{host}}/admin/employee/add
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
account=13632877013&status=1&role_id=1&chinese_name=测试
|
|
|
|
### 账号修改
|
|
POST {{host}}/admin/employee/edit
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
id=2&account=13632877013&status=1&role_id=1&chinese_name=测试1
|
|
|
|
### 账号删除
|
|
GET {{host}}/admin/employee/del?id=2
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 账号详情
|
|
GET {{host}}/admin/employee/info?id=1
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 账号列表
|
|
GET {{host}}/admin/employee/list?limit=10
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 账号重置密码
|
|
GET {{host}}/admin/employee/reset_password?id=2
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### ali sts 临时授权
|
|
GET {{host}}/admin/third/sts/accredit
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
|
|
### 部门列表
|
|
GET {{host}}/admin/section/list
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 部门添加
|
|
POST {{host}}/admin/section/add
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
name=总公司c&pid=1
|
|
|
|
### 部门修改
|
|
POST {{host}}/admin/section/edit
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
id=1&name=总公司啊
|
|
|
|
### 部门删除
|
|
GET {{host}}/admin/section/del?id=1
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 部门详情
|
|
GET {{host}}/admin/section/info?id=1
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 部门启用列表
|
|
GET {{host}}/admin/section/all_list
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
|
|
### 添加厨房
|
|
POST {{host}}/admin/kitchen/add
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 修改厨房
|
|
POST {{host}}/admin/kitchen/edit
|
|
content-type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 厨房列表
|
|
GET {{host}}/admin/kitchen/list?limit=10
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 厨房信息
|
|
GET {{host}}/admin/kitchen/info?id=1
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 厨房删除
|
|
GET {{host}}/admin/kitchen/del?id=1
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
|
|
### 添加配送点
|
|
POST {{host}}/admin/site/add
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
name=华润大厦&address=华润大厦&lng=113.26452099999997&lat=23.12916&status=1&kitchen_id=1&driver_id=1&expected_delivery_time=11:40&city_id=1
|
|
|
|
### 修改配送点
|
|
POST {{host}}/admin/site/edit
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 配送点列表
|
|
GET {{host}}/admin/site/list?limit=10
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 配送点信息
|
|
GET {{host}}/admin/site/info?id=1
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 配送点删除
|
|
GET {{host}}/admin/site/del?id=1
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
|
|
### 司机列表
|
|
GET {{host}}/admin/site/driver_list?limit=1
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 司机配送顺序列表
|
|
GET {{host}}/admin/site/driver_sequence_list?city_id=1
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 设置司机排序
|
|
POST {{host}}/admin/site/setting_driver_sequence
|
|
content-type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
driver_ids=1,2,3
|
|
|
|
### 设置司机号码
|
|
POST {{host}}/admin/site/setting_driver_num
|
|
content-type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
driver_id=1&driver_num=50
|
|
|
|
### 司机配送顺序列表
|
|
GET {{host}}/admin/site/site_sequence_list_by_driver?driver_id=1
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 设置司机排序
|
|
POST {{host}}/admin/site/setting_driver_sequence
|
|
content-type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
driver_id=1&site_ids=1,2,3
|
|
|
|
### 厨师列表
|
|
GET {{host}}/admin/chef/chef_list?limit=10
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 厨师详细列表
|
|
GET {{host}}/admin/chef/chef_detail_list
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 设置厨师信息
|
|
POST {{host}}/admin/chef/setting_chef
|
|
content-type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
user_id=3&profile=擅长煮煮煮煮&specialties=川菜
|
|
|
|
### 商品种类列表
|
|
GET {{host}}/admin/good/list_category
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 商品种类添加
|
|
POST {{host}}/admin/good/add_category
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
name=主食&image_id=4
|
|
|
|
### 用户列表
|
|
GET {{host}}/admin/member/list?limit=10
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 排菜列表
|
|
GET {{host}}/admin/dish/list?limit=10
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 仓库列表
|
|
GET {{host}}/admin/depot/depot_list?limit=10
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 仓库添加
|
|
POST {{host}}/admin/depot/depot_add
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
name=蔬菜仓库&city_id=1&kitchen_id=1
|
|
|
|
### 仓库修改信息
|
|
POST {{host}}/admin/depot/depot_edit
|
|
content-type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
id=2&name=冻品仓库&city_id=1&kitchen_id=1
|
|
|
|
### 仓库删除
|
|
GET {{host}}/admin/depot/depot_delete?id=2
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}} |