From 05ab1555f5a69f52807ca0e14f639cea53d4eb8e Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期三, 08 十一月 2023 09:43:48 +0800
Subject: [PATCH] crm获取库存信息修改
---
docs/docs.go | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 105 insertions(+), 3 deletions(-)
diff --git a/docs/docs.go b/docs/docs.go
index 58d7d71..3b0d76d 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -543,10 +543,44 @@
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/request.GetProductList"
+ "$ref": "#/definitions/request.GetLocationList"
}
}
],
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/util.ResponseList"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/models.Location"
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "/api-wms/v1/location/getLocationTreeList": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "浣嶇疆"
+ ],
+ "summary": "鑾峰彇浣嶇疆鍒楄〃鏍�",
"responses": {
"200": {
"description": "鎴愬姛",
@@ -2353,6 +2387,21 @@
"ReservationMethodByDate"
]
},
+ "constvar.RuleType": {
+ "type": "integer",
+ "enum": [
+ 1,
+ 2
+ ],
+ "x-enum-comments": {
+ "RuleType_Product": "浜у搧涓婃灦瑙勫垯",
+ "RuleType_ProductCategory": "浜у搧绫诲埆涓婃灦瑙勫垯"
+ },
+ "x-enum-varnames": [
+ "RuleType_Product",
+ "RuleType_ProductCategory"
+ ]
+ },
"constvar.WhetherType": {
"type": "integer",
"enum": [
@@ -2430,6 +2479,12 @@
"models.Location": {
"type": "object",
"properties": {
+ "children": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/models.Location"
+ }
+ },
"companyId": {
"description": "鍏徃id",
"type": "integer"
@@ -3073,6 +3128,14 @@
"productId": {
"description": "浜у搧id",
"type": "string"
+ },
+ "ruleType": {
+ "description": "涓婃灦瑙勫垯绫诲瀷 1锛氫骇鍝佺被鍨嬶紱2锛氫骇鍝佺被鍒被鍨�",
+ "allOf": [
+ {
+ "$ref": "#/definitions/constvar.RuleType"
+ }
+ ]
}
}
},
@@ -3390,6 +3453,29 @@
}
}
},
+ "request.GetLocationList": {
+ "type": "object",
+ "properties": {
+ "jointName": {
+ "description": "鎷兼帴鍚嶇О",
+ "type": "string"
+ },
+ "keyWord": {
+ "type": "string"
+ },
+ "page": {
+ "description": "椤电爜",
+ "type": "integer"
+ },
+ "pageSize": {
+ "description": "姣忛〉澶у皬",
+ "type": "integer"
+ },
+ "type": {
+ "type": "integer"
+ }
+ }
+ },
"request.GetProductList": {
"type": "object",
"properties": {
@@ -3415,6 +3501,9 @@
"keyWord": {
"type": "string"
},
+ "locationId": {
+ "type": "integer"
+ },
"page": {
"description": "椤电爜",
"type": "integer"
@@ -3422,6 +3511,13 @@
"pageSize": {
"description": "姣忛〉澶у皬",
"type": "integer"
+ },
+ "productId": {
+ "type": "string"
+ },
+ "type": {
+ "description": "绫诲瀷:bh=琛ヨ揣",
+ "type": "string"
}
}
},
@@ -3652,6 +3748,14 @@
"productId": {
"description": "浜у搧id",
"type": "string"
+ },
+ "ruleType": {
+ "description": "涓婃灦瑙勫垯绫诲瀷 1锛氫骇鍝佺被鍨嬶紱2锛氫骇鍝佺被鍒被鍨�",
+ "allOf": [
+ {
+ "$ref": "#/definitions/constvar.RuleType"
+ }
+ ]
}
}
},
@@ -4034,8 +4138,6 @@
Description: "",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
- LeftDelim: "{{",
- RightDelim: "}}",
}
func init() {
--
Gitblit v1.8.0