备份:修复前完整项目快照 2026-04-19
This commit is contained in:
@@ -0,0 +1,110 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "供应商管理API",
|
||||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
||||
},
|
||||
"item": [
|
||||
{
|
||||
"name": "健康检查",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "{{base_url}}/health"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "获取供应商列表",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "{{base_url}}/api/suppliers",
|
||||
"query": [
|
||||
{
|
||||
"key": "page",
|
||||
"value": "1",
|
||||
"description": "页码"
|
||||
},
|
||||
{
|
||||
"key": "limit",
|
||||
"value": "10",
|
||||
"description": "每页数量"
|
||||
},
|
||||
{
|
||||
"key": "search",
|
||||
"value": "",
|
||||
"description": "搜索关键词"
|
||||
},
|
||||
{
|
||||
"key": "type",
|
||||
"value": "",
|
||||
"description": "供应商类型"
|
||||
},
|
||||
{
|
||||
"key": "status",
|
||||
"value": "",
|
||||
"description": "状态"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "获取单个供应商",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "{{base_url}}/api/suppliers/1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "创建供应商",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"url": "{{base_url}}/api/suppliers",
|
||||
"header": [
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"name\": \"新供应商有限公司\",\n \"code\": \"NEW001\",\n \"type\": \"manufacturer\",\n \"contact_person\": \"联系人\",\n \"phone\": \"13800138000\",\n \"email\": \"contact@new.com\",\n \"address\": \"地址\",\n \"tax_number\": \"911101087654321\",\n \"bank_account\": \"银行账户\",\n \"status\": \"active\",\n \"rating\": 4,\n \"notes\": \"备注\"\n}"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "更新供应商",
|
||||
"request": {
|
||||
"method": "PUT",
|
||||
"url": "{{base_url}}/api/suppliers/1",
|
||||
"header": [
|
||||
{
|
||||
"key": "Content-Type",
|
||||
"value": "application/json"
|
||||
}
|
||||
],
|
||||
"body": {
|
||||
"mode": "raw",
|
||||
"raw": "{\n \"contact_person\": \"更新后的联系人\",\n \"phone\": \"13900139000\",\n \"email\": \"updated@example.com\"\n}"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "删除供应商",
|
||||
"request": {
|
||||
"method": "DELETE",
|
||||
"url": "{{base_url}}/api/suppliers/1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "获取供应商联系人",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "{{base_url}}/api/suppliers/1/contacts"
|
||||
}
|
||||
}
|
||||
],
|
||||
"variable": [
|
||||
{
|
||||
"key": "base_url",
|
||||
"value": "http://localhost:3000"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user