chengc 4 napja
szülő
commit
7cc72fd5b9
2 módosított fájl, 80 hozzáadás és 2 törlés
  1. 78 0
      collections/api-tests-basic.json
  2. 2 2
      collections/api-tests-business.json

+ 78 - 0
collections/api-tests-basic.json

@@ -73,6 +73,84 @@
 				"description": "用户登录"
 			},
 			"response": []
+		},
+		{
+			"name": "新增货品",
+			"request": {
+				"method": "POST",
+				"header": [
+					{
+						"key": "LoginId",
+						"value": "{{api-login-id}}",
+						"type": "text"
+					},
+					{
+						"key": "sn",
+						"value": "{{api-sn}}",
+						"type": "text"
+					}
+				],
+				"body": {
+					"mode": "raw",
+					"raw": "[\r\n    {\r\n        \"PRD_NO\": \"HP00001\", // 必须,货品代号,该货品代号在资料中存在即为修改原数据,不存在为新增\r\n        \"NAME\": \"货品HP00001\", // 必须,货品名称\r\n        \"UT\": \"KG\", // 必须,主单位\r\n        \"SNM\": \"HP00001\", // 非必须,简称\r\n        \"REM\": \"货品HP00001摘要,API测试\" // 非必须,摘要\r\n    }\r\n]",
+					"options": {
+						"raw": {
+							"language": "json"
+						}
+					}
+				},
+				"url": {
+					"raw": "{{api-url}}/Prdt/AppendToPrdt",
+					"host": [
+						"{{api-url}}"
+					],
+					"path": [
+						"Prdt",
+						"AppendToPrdt"
+					]
+				},
+				"description": "新增货品"
+			},
+			"response": []
+		},
+		{
+			"name": "删除货品",
+			"request": {
+				"method": "POST",
+				"header": [
+					{
+						"key": "LoginId",
+						"value": "{{api-login-id}}",
+						"type": "text"
+					},
+					{
+						"key": "sn",
+						"value": "{{api-sn}}",
+						"type": "text"
+					}
+				],
+				"body": {
+					"mode": "raw",
+					"raw": "[\r\n    {\r\n        \"PRD_NO\": \"HP00001\" // 必须,货品代号,删除该笔货品资料\r\n    }\r\n]",
+					"options": {
+						"raw": {
+							"language": "json"
+						}
+					}
+				},
+				"url": {
+					"raw": "{{api-url}}/Prdt/DeleteForPrdt",
+					"host": [
+						"{{api-url}}"
+					],
+					"path": [
+						"Prdt",
+						"DeleteForPrdt"
+					]
+				},
+				"description": "删除货品"
+			},
+			"response": []
 		}
 	],
 	"event": [

+ 2 - 2
collections/api-tests-business.json

@@ -109,7 +109,7 @@
 						"AppendToCust"
 					]
 				},
-				"description": "同步货品资料"
+				"description": "新增客户厂商"
 			},
 			"response": []
 		},
@@ -148,7 +148,7 @@
 						"DeleteForCust"
 					]
 				},
-				"description": "同步货品资料"
+				"description": "删除客户厂商"
 			},
 			"response": []
 		}