533 lines
14 KiB
HTTP
533 lines
14 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/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}}
|
|
|
|
### 材料种类添加
|
|
POST {{host}}/admin/material_category/add
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
name=猪肉&city_id=1&kitchen_id=1
|
|
|
|
### 材料种类修改
|
|
POST {{host}}/admin/material_category/edit
|
|
content-type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
id=2&name=猪肉&city_id=1&kitchen_id=1&parent_id=1
|
|
|
|
### 材料种类删除
|
|
GET {{host}}/admin/material_category/delete?id=3
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 根据id查询材料种类
|
|
GET {{host}}/admin/material_category/findById?query_id=1
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 材料列表
|
|
GET {{host}}/admin/material/list?limit=10
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 材料添加
|
|
POST {{host}}/admin/material/add
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
category_id=2&name=冻猪肉&unit=斤&bar_code=1003&city_id=1&kitchen_id=1
|
|
|
|
### 材料删除
|
|
GET {{host}}/admin/material/delete?id=1
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 材料修改
|
|
POST {{host}}/admin/material/edit
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
id=1&category_id=2&name=冻猪肉&standard=2斤/包&unit=包&bar_code=1003&status=1
|
|
|
|
### 材料库存列表
|
|
GET {{host}}/admin/material/materialStock_list?limit=10
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 供应商列表
|
|
GET {{host}}/admin/supplier/list?limit=10
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 供应商添加
|
|
POST {{host}}/admin/supplier/add
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
name=1号&mobile=15864359431&address=深圳市南山区&city_id=1&kitchen_id=1
|
|
|
|
### 供应商修改
|
|
POST {{host}}/admin/supplier/edit
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
id=1&name=1号供应商&mobile=15864359431&address=广东省深圳市南山区
|
|
|
|
### 供应商删除
|
|
GET {{host}}/admin/supplier/delete?id=1
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 采购列表
|
|
GET {{host}}/admin/depot/purchase_list?limit=10
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 采购入库
|
|
POST {{host}}/admin/depot/depot_purchase
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
depot_id=1&material_id=1&supplier_id=1&purchase_price=60&number=2&city_id=1&kitchen_id=1
|
|
|
|
### 采购数量修改
|
|
POST {{host}}/admin/depot/depot_purchase_update
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
id=1&number=9
|
|
|
|
### 排菜列表
|
|
GET {{host}}/admin/dish/list?limit=10
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 厨师添加菜品
|
|
POST {{host}}/api/dish/add
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
dish_name=排骨饭&profile=加水&pre_quantity=500&price=15&side_dish=33333&flavor=清淡&cycle_id=1&city_id=1&kitchen_id=1
|
|
|
|
### 厨师修改菜品
|
|
POST {{host}}/api/dish/edit
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
id=1&pre_quantity=300&price=12
|
|
|
|
### 厨师删除菜品
|
|
POST {{host}}/api/dish/delete?id=1
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 厨师查看排菜
|
|
GET {{host}}/api/dish/list?limit=10
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 厨师申请材料
|
|
POST {{host}}/api/material/application
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
material_id=1&dish_id=1&number=50&city_id=1&kitchen_id=1
|
|
|
|
### 厨师修改申请材料
|
|
POST {{host}}/api/material/application_edit
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
id=1&material_id=1&dish_id=1&number=50&processing=切碎
|
|
|
|
### 厨师删除申请材料
|
|
POST {{host}}/api/material/application_delete?id=1
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 个人申请材料列表
|
|
GET {{host}}/api/material/application_list?limit=10
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 商品销售出库
|
|
POST {{host}}/admin/depot/depot_sale
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
depot_id=1&material_id=1&supplier_id=1&number=8&application_id=1&city_id=1&kitchen_id=1
|
|
|
|
### 商品销售出库修改数量
|
|
POST {{host}}/admin/depot/sale_update
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
id=1&number=3
|
|
|
|
### 商品销售出库删除
|
|
POST {{host}}/admin/depot/sale_delete
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
id=2
|
|
|
|
### 商品销售出库列表
|
|
GET {{host}}/admin/depot/sale_list?limit=10&query_kitchen_id=1
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 管理员回收商品
|
|
POST {{host}}/admin/depot/depot_recycle
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
material_id=1&supplier_id=1&number=1&sale_id=2&city_id=1&kitchen_id=1
|
|
|
|
### 管理员修改回收数量
|
|
POST {{host}}/admin/depot/recycle_update
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
id=2&number=2
|
|
|
|
### 管理员删除回收
|
|
POST {{host}}/admin/depot/recycle_delete?id=3
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 管理员查看回收列表
|
|
GET {{host}}/admin/depot/recycle_list?limit=10&query_kitchen_id=1
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 管理员审核回收
|
|
POST {{host}}/admin/depot/recycle_audit
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
id=3&status=2
|
|
|
|
### 厨师回收商品
|
|
POST {{host}}/api/depot/depot_recycle
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
material_id=1&supplier_id=1&number=3&sale_id=2&city_id=1&kitchen_id=1
|
|
|
|
### 厨师修改回收数量
|
|
POST {{host}}/api/depot/recycle_update
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
id=3&number=3
|
|
|
|
### 厨师删除回收
|
|
POST {{host}}/api/depot/recycle_delete?id=3
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Authorization: Bearer {{admin_token}}
|
|
|
|
### 厨师查看回收列表
|
|
GET {{host}}/api/depot/recycle_list?limit=10&query_kitchen_id=1
|
|
content-type: application/json
|
|
Authorization: Bearer {{admin_token}}
|
|
|