feat:supplier
This commit is contained in:
@@ -353,3 +353,27 @@ Authorization: Bearer {{admin_token}}
|
||||
|
||||
id=1&category_id=2&name=冻猪肉&standard=2斤/包&unit=包&bar_code=1003&status=1
|
||||
|
||||
### 供应商列表
|
||||
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}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user