From f1fac6447debc8136f931b85a946de7d5b205481 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期五, 03 十一月 2023 16:56:24 +0800
Subject: [PATCH] swagger修改
---
docs/swagger.yaml | 18 ++++++++
controllers/location.go | 2
docs/docs.go | 25 ++++++++++++
docs/swagger.json | 25 ++++++++++++
4 files changed, 66 insertions(+), 4 deletions(-)
diff --git a/controllers/location.go b/controllers/location.go
index 0860808..ff2d5c4 100644
--- a/controllers/location.go
+++ b/controllers/location.go
@@ -54,7 +54,7 @@
// @Tags 浣嶇疆
// @Summary 鑾峰彇浣嶇疆鍒楄〃
// @Produce application/json
-// @Param object body request.GetProductList true "鏌ヨ鍙傛暟"
+// @Param object body request.GetLocationList true "鏌ヨ鍙傛暟"
// @Success 200 {object} util.ResponseList{data=[]models.Location} "鎴愬姛"
// @Router /api-wms/v1/location/getLocationList [post]
func (slf LocationController) GetLocationList(c *gin.Context) {
diff --git a/docs/docs.go b/docs/docs.go
index fe9c170..8a80911 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -543,7 +543,7 @@
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/request.GetProductList"
+ "$ref": "#/definitions/request.GetLocationList"
}
}
],
@@ -3453,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": {
diff --git a/docs/swagger.json b/docs/swagger.json
index 53621ab..69d5f86 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -531,7 +531,7 @@
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/request.GetProductList"
+ "$ref": "#/definitions/request.GetLocationList"
}
}
],
@@ -3441,6 +3441,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": {
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index d15fc23..b2a6ba4 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -924,6 +924,22 @@
wareHouseCode:
type: string
type: object
+ request.GetLocationList:
+ properties:
+ jointName:
+ description: 鎷兼帴鍚嶇О
+ type: string
+ keyWord:
+ type: string
+ page:
+ description: 椤电爜
+ type: integer
+ pageSize:
+ description: 姣忛〉澶у皬
+ type: integer
+ type:
+ type: integer
+ type: object
request.GetProductList:
properties:
categoryId:
@@ -1694,7 +1710,7 @@
name: object
required: true
schema:
- $ref: '#/definitions/request.GetProductList'
+ $ref: '#/definitions/request.GetLocationList'
produces:
- application/json
responses:
--
Gitblit v1.8.0