liujiandao
2023-11-03 f1fac6447debc8136f931b85a946de7d5b205481
swagger修改
4个文件已修改
70 ■■■■■ 已修改文件
controllers/location.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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) {
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": {
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": {
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: