liujiandao
2024-03-11 318c49da20ec30c4f85ef35e479499e82a841b25
swag提交
4个文件已修改
126 ■■■■■ 已修改文件
controllers/product_controller.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go 48 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 48 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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()
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": [
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": [
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: