From 318c49da20ec30c4f85ef35e479499e82a841b25 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期一, 11 三月 2024 14:18:13 +0800
Subject: [PATCH] swag提交
---
controllers/product_controller.go | 2
docs/swagger.yaml | 28 +++++++++
docs/docs.go | 48 ++++++++++++++++
docs/swagger.json | 48 ++++++++++++++++
4 files changed, 125 insertions(+), 1 deletions(-)
diff --git a/controllers/product_controller.go b/controllers/product_controller.go
index 565bf9a..b91d30f 100644
--- a/controllers/product_controller.go
+++ b/controllers/product_controller.go
@@ -767,7 +767,7 @@
// @Tags 浜у搧
// @Summary 鑾峰彇鍗曚綅淇℃伅
// @Produce application/json
-// @Success 200 {object} util.ResponseList{data=map[string]interface{}} "鎴愬姛"
+// @Success 200 {object} util.ResponseList{data=[]models.UnitDict} "鎴愬姛"
// @Router /api-wms/v1/product/getUnitInfo [get]
func (slf ProductController) GetUnitInfo(c *gin.Context) {
dicts, total, err := models.NewUnitDictSearch().Find()
diff --git a/docs/docs.go b/docs/docs.go
index 422dacf..d138973 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1930,6 +1930,40 @@
}
}
},
+ "/api-wms/v1/product/getUnitInfo": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "浜у搧"
+ ],
+ "summary": "鑾峰彇鍗曚綅淇℃伅",
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/util.ResponseList"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/models.UnitDict"
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
"/api-wms/v1/product/getUserInfo": {
"get": {
"produces": [
@@ -3669,6 +3703,20 @@
}
}
},
+ "models.UnitDict": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "isDefault": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ }
+ }
+ },
"models.Warehouse": {
"type": "object",
"required": [
diff --git a/docs/swagger.json b/docs/swagger.json
index f858031..8ba5876 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -1918,6 +1918,40 @@
}
}
},
+ "/api-wms/v1/product/getUnitInfo": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "浜у搧"
+ ],
+ "summary": "鑾峰彇鍗曚綅淇℃伅",
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/util.ResponseList"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/models.UnitDict"
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
"/api-wms/v1/product/getUserInfo": {
"get": {
"produces": [
@@ -3657,6 +3691,20 @@
}
}
},
+ "models.UnitDict": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "isDefault": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ }
+ }
+ },
"models.Warehouse": {
"type": "object",
"required": [
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index ee77203..bbf35f0 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -799,6 +799,15 @@
updateTime:
type: string
type: object
+ models.UnitDict:
+ properties:
+ id:
+ type: integer
+ isDefault:
+ type: boolean
+ name:
+ type: string
+ type: object
models.Warehouse:
properties:
active:
@@ -2860,6 +2869,25 @@
summary: 鑾峰彇浜у搧鍒楄〃
tags:
- 浜у搧
+ /api-wms/v1/product/getUnitInfo:
+ get:
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: 鎴愬姛
+ schema:
+ allOf:
+ - $ref: '#/definitions/util.ResponseList'
+ - properties:
+ data:
+ items:
+ $ref: '#/definitions/models.UnitDict'
+ type: array
+ type: object
+ summary: 鑾峰彇鍗曚綅淇℃伅
+ tags:
+ - 浜у搧
/api-wms/v1/product/getUserInfo:
get:
produces:
--
Gitblit v1.8.0