liujiandao
2023-09-21 cfc9b0e38d630f15f570a7a366ee950030d39fce
swagger同步
3个文件已修改
276 ■■■■■ 已修改文件
docs/docs.go 98 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.json 98 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/swagger.yaml 80 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/docs.go
@@ -467,6 +467,34 @@
                }
            }
        },
        "/api-wms/v1/operation/finish/{id}": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "入库/出库"
                ],
                "summary": "更改记录状态",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/operation/operation": {
            "get": {
                "consumes": [
@@ -605,7 +633,7 @@
                    "application/json"
                ],
                "tags": [
                    "作业类型"
                    "业务类型"
                ],
                "summary": "查询作业类型列表",
                "parameters": [
@@ -656,7 +684,7 @@
                    "application/json"
                ],
                "tags": [
                    "作业类型"
                    "业务类型"
                ],
                "summary": "添加作业类型",
                "parameters": [
@@ -686,7 +714,7 @@
                    "application/json"
                ],
                "tags": [
                    "作业类型"
                    "业务类型"
                ],
                "summary": "编辑作业类型",
                "parameters": [
@@ -721,7 +749,7 @@
                    "application/json"
                ],
                "tags": [
                    "作业类型"
                    "业务类型"
                ],
                "summary": "删除作业类型",
                "parameters": [
@@ -1622,10 +1650,6 @@
        "models.Material": {
            "type": "object",
            "properties": {
                "HSCode": {
                    "description": "HS编码",
                    "type": "string"
                },
                "amount": {
                    "description": "数量",
                    "type": "number"
@@ -1679,14 +1703,14 @@
                    "type": "number"
                },
                "deliveryAdvanceTime": {
                    "description": "交货提前时间(天)",
                    "type": "integer"
                    "description": "客户前置时间(天)",
                    "type": "number"
                },
                "id": {
                    "type": "string"
                },
                "inStorageExplain": {
                    "description": "入库说明",
                    "description": "HSCode                  string                     ` + "`" + `gorm:\"type:varchar(255);comment:HS编码\" json:\"HSCode\"` + "`" + `                    //HS编码\nOriginCountryId         int                        ` + "`" + `gorm:\"type:int(11);comment:原产地id\" json:\"originCountryId\"` + "`" + `               //原产地id\nOriginCountryName       string                     ` + "`" + `gorm:\"type:varchar(255);comment:原产地名称\" json:\"originCountryName\"` + "`" + `        //原产地名称",
                    "type": "string"
                },
                "internalNotes": {
@@ -1713,6 +1737,10 @@
                    "description": "PurchaseType      constvar.PurchaseType ` + "`" + `gorm:\"type:int(11);comment:采购类型\" json:\"purchaseType\"` + "`" + `",
                    "type": "boolean"
                },
                "makeAdvanceTime": {
                    "description": "制造前置时间(天)",
                    "type": "number"
                },
                "maxInventory": {
                    "description": "最大库存",
                    "type": "number"
@@ -1737,6 +1765,10 @@
                    "description": "物料名称",
                    "type": "string"
                },
                "orderAdvanceTime": {
                    "description": "订单准备天数(天)",
                    "type": "number"
                },
                "orderCreation": {
                    "description": "订单创建",
                    "allOf": [
@@ -1744,14 +1776,6 @@
                            "$ref": "#/definitions/constvar.OrderCreation"
                        }
                    ]
                },
                "originCountryId": {
                    "description": "原产地id",
                    "type": "integer"
                },
                "originCountryName": {
                    "description": "原产地名称",
                    "type": "string"
                },
                "outStorageExplain": {
                    "description": "出库说明",
@@ -2089,22 +2113,23 @@
        "request.AddOperation": {
            "type": "object",
            "properties": {
                "carrierID": {
                    "type": "integer"
                },
                "carrierName": {
                "comment": {
                    "type": "string"
                },
                "companyID": {
                    "description": "公司ID-客户",
                    "type": "integer"
                },
                "companyName": {
                    "description": "公司名称-客户名称",
                    "type": "string"
                },
                "contacterID": {
                    "description": "联系人ID-非必填",
                    "type": "integer"
                },
                "contacterName": {
                    "description": "联系人姓名-非必填",
                    "type": "string"
                },
                "details": {
@@ -2125,6 +2150,7 @@
                    "type": "string"
                },
                "operationDate": {
                    "description": "安排日期",
                    "type": "string"
                },
                "operationTypeId": {
@@ -2146,15 +2172,6 @@
                "toLocationId": {
                    "description": "目标位置id",
                    "type": "integer"
                },
                "tracking": {
                    "type": "string"
                },
                "transferWeight": {
                    "type": "number"
                },
                "weight": {
                    "type": "number"
                }
            }
        },
@@ -2302,10 +2319,6 @@
        "request.OperationDetails": {
            "type": "object",
            "properties": {
                "finishQuantity": {
                    "description": "完成数量",
                    "type": "number"
                },
                "productId": {
                    "description": "产品id",
                    "type": "integer"
@@ -2317,6 +2330,9 @@
                "quantity": {
                    "description": "数量",
                    "type": "number"
                },
                "unit": {
                    "type": "string"
                }
            }
        },
@@ -2360,21 +2376,27 @@
            "type": "object",
            "properties": {
                "carrierID": {
                    "description": "承运商ID-非必填",
                    "type": "integer"
                },
                "carrierName": {
                    "description": "承运商名称-非必填",
                    "type": "string"
                },
                "companyID": {
                    "description": "公司ID-客户",
                    "type": "integer"
                },
                "companyName": {
                    "description": "公司名称-客户名称",
                    "type": "string"
                },
                "contacterID": {
                    "description": "联系人ID-非必填",
                    "type": "integer"
                },
                "contacterName": {
                    "description": "联系人姓名-非必填",
                    "type": "string"
                },
                "details": {
@@ -2395,6 +2417,7 @@
                    "type": "string"
                },
                "operationDate": {
                    "description": "安排日期",
                    "type": "string"
                },
                "operationTypeId": {
@@ -2418,12 +2441,15 @@
                    "type": "integer"
                },
                "tracking": {
                    "description": "追踪参考-非必填",
                    "type": "string"
                },
                "transferWeight": {
                    "description": "物流重量(kg)-非必填",
                    "type": "number"
                },
                "weight": {
                    "description": "重量(kg)-非必填",
                    "type": "number"
                }
            }
docs/swagger.json
@@ -455,6 +455,34 @@
                }
            }
        },
        "/api-wms/v1/operation/finish/{id}": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "入库/出库"
                ],
                "summary": "更改记录状态",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "$ref": "#/definitions/util.Response"
                        }
                    }
                }
            }
        },
        "/api-wms/v1/operation/operation": {
            "get": {
                "consumes": [
@@ -593,7 +621,7 @@
                    "application/json"
                ],
                "tags": [
                    "作业类型"
                    "业务类型"
                ],
                "summary": "查询作业类型列表",
                "parameters": [
@@ -644,7 +672,7 @@
                    "application/json"
                ],
                "tags": [
                    "作业类型"
                    "业务类型"
                ],
                "summary": "添加作业类型",
                "parameters": [
@@ -674,7 +702,7 @@
                    "application/json"
                ],
                "tags": [
                    "作业类型"
                    "业务类型"
                ],
                "summary": "编辑作业类型",
                "parameters": [
@@ -709,7 +737,7 @@
                    "application/json"
                ],
                "tags": [
                    "作业类型"
                    "业务类型"
                ],
                "summary": "删除作业类型",
                "parameters": [
@@ -1610,10 +1638,6 @@
        "models.Material": {
            "type": "object",
            "properties": {
                "HSCode": {
                    "description": "HS编码",
                    "type": "string"
                },
                "amount": {
                    "description": "数量",
                    "type": "number"
@@ -1667,14 +1691,14 @@
                    "type": "number"
                },
                "deliveryAdvanceTime": {
                    "description": "交货提前时间(天)",
                    "type": "integer"
                    "description": "客户前置时间(天)",
                    "type": "number"
                },
                "id": {
                    "type": "string"
                },
                "inStorageExplain": {
                    "description": "入库说明",
                    "description": "HSCode                  string                     `gorm:\"type:varchar(255);comment:HS编码\" json:\"HSCode\"`                    //HS编码\nOriginCountryId         int                        `gorm:\"type:int(11);comment:原产地id\" json:\"originCountryId\"`               //原产地id\nOriginCountryName       string                     `gorm:\"type:varchar(255);comment:原产地名称\" json:\"originCountryName\"`        //原产地名称",
                    "type": "string"
                },
                "internalNotes": {
@@ -1701,6 +1725,10 @@
                    "description": "PurchaseType      constvar.PurchaseType `gorm:\"type:int(11);comment:采购类型\" json:\"purchaseType\"`",
                    "type": "boolean"
                },
                "makeAdvanceTime": {
                    "description": "制造前置时间(天)",
                    "type": "number"
                },
                "maxInventory": {
                    "description": "最大库存",
                    "type": "number"
@@ -1725,6 +1753,10 @@
                    "description": "物料名称",
                    "type": "string"
                },
                "orderAdvanceTime": {
                    "description": "订单准备天数(天)",
                    "type": "number"
                },
                "orderCreation": {
                    "description": "订单创建",
                    "allOf": [
@@ -1732,14 +1764,6 @@
                            "$ref": "#/definitions/constvar.OrderCreation"
                        }
                    ]
                },
                "originCountryId": {
                    "description": "原产地id",
                    "type": "integer"
                },
                "originCountryName": {
                    "description": "原产地名称",
                    "type": "string"
                },
                "outStorageExplain": {
                    "description": "出库说明",
@@ -2077,22 +2101,23 @@
        "request.AddOperation": {
            "type": "object",
            "properties": {
                "carrierID": {
                    "type": "integer"
                },
                "carrierName": {
                "comment": {
                    "type": "string"
                },
                "companyID": {
                    "description": "公司ID-客户",
                    "type": "integer"
                },
                "companyName": {
                    "description": "公司名称-客户名称",
                    "type": "string"
                },
                "contacterID": {
                    "description": "联系人ID-非必填",
                    "type": "integer"
                },
                "contacterName": {
                    "description": "联系人姓名-非必填",
                    "type": "string"
                },
                "details": {
@@ -2113,6 +2138,7 @@
                    "type": "string"
                },
                "operationDate": {
                    "description": "安排日期",
                    "type": "string"
                },
                "operationTypeId": {
@@ -2134,15 +2160,6 @@
                "toLocationId": {
                    "description": "目标位置id",
                    "type": "integer"
                },
                "tracking": {
                    "type": "string"
                },
                "transferWeight": {
                    "type": "number"
                },
                "weight": {
                    "type": "number"
                }
            }
        },
@@ -2290,10 +2307,6 @@
        "request.OperationDetails": {
            "type": "object",
            "properties": {
                "finishQuantity": {
                    "description": "完成数量",
                    "type": "number"
                },
                "productId": {
                    "description": "产品id",
                    "type": "integer"
@@ -2305,6 +2318,9 @@
                "quantity": {
                    "description": "数量",
                    "type": "number"
                },
                "unit": {
                    "type": "string"
                }
            }
        },
@@ -2348,21 +2364,27 @@
            "type": "object",
            "properties": {
                "carrierID": {
                    "description": "承运商ID-非必填",
                    "type": "integer"
                },
                "carrierName": {
                    "description": "承运商名称-非必填",
                    "type": "string"
                },
                "companyID": {
                    "description": "公司ID-客户",
                    "type": "integer"
                },
                "companyName": {
                    "description": "公司名称-客户名称",
                    "type": "string"
                },
                "contacterID": {
                    "description": "联系人ID-非必填",
                    "type": "integer"
                },
                "contacterName": {
                    "description": "联系人姓名-非必填",
                    "type": "string"
                },
                "details": {
@@ -2383,6 +2405,7 @@
                    "type": "string"
                },
                "operationDate": {
                    "description": "安排日期",
                    "type": "string"
                },
                "operationTypeId": {
@@ -2406,12 +2429,15 @@
                    "type": "integer"
                },
                "tracking": {
                    "description": "追踪参考-非必填",
                    "type": "string"
                },
                "transferWeight": {
                    "description": "物流重量(kg)-非必填",
                    "type": "number"
                },
                "weight": {
                    "description": "重量(kg)-非必填",
                    "type": "number"
                }
            }
docs/swagger.yaml
@@ -263,9 +263,6 @@
    type: object
  models.Material:
    properties:
      HSCode:
        description: HS编码
        type: string
      amount:
        description: 数量
        type: number
@@ -304,12 +301,15 @@
        description: 客户税百分比
        type: number
      deliveryAdvanceTime:
        description: 交货提前时间(天)
        type: integer
        description: 客户前置时间(天)
        type: number
      id:
        type: string
      inStorageExplain:
        description: 入库说明
        description: |-
          HSCode                  string                     `gorm:"type:varchar(255);comment:HS编码" json:"HSCode"`                    //HS编码
          OriginCountryId         int                        `gorm:"type:int(11);comment:原产地id" json:"originCountryId"`               //原产地id
          OriginCountryName       string                     `gorm:"type:varchar(255);comment:原产地名称" json:"originCountryName"`        //原产地名称
        type: string
      internalNotes:
        description: 内部说明
@@ -328,6 +328,9 @@
        description: PurchaseType      constvar.PurchaseType `gorm:"type:int(11);comment:采购类型"
          json:"purchaseType"`
        type: boolean
      makeAdvanceTime:
        description: 制造前置时间(天)
        type: number
      maxInventory:
        description: 最大库存
        type: number
@@ -351,16 +354,13 @@
      name:
        description: 物料名称
        type: string
      orderAdvanceTime:
        description: 订单准备天数(天)
        type: number
      orderCreation:
        allOf:
        - $ref: '#/definitions/constvar.OrderCreation'
        description: 订单创建
      originCountryId:
        description: 原产地id
        type: integer
      originCountryName:
        description: 原产地名称
        type: string
      outStorageExplain:
        description: 出库说明
        type: string
@@ -588,17 +588,19 @@
    type: object
  request.AddOperation:
    properties:
      carrierID:
        type: integer
      carrierName:
      comment:
        type: string
      companyID:
        description: 公司ID-客户
        type: integer
      companyName:
        description: 公司名称-客户名称
        type: string
      contacterID:
        description: 联系人ID-非必填
        type: integer
      contacterName:
        description: 联系人姓名-非必填
        type: string
      details:
        items:
@@ -613,6 +615,7 @@
        description: 单号
        type: string
      operationDate:
        description: 安排日期
        type: string
      operationTypeId:
        description: 作业类型id
@@ -627,12 +630,6 @@
      toLocationId:
        description: 目标位置id
        type: integer
      tracking:
        type: string
      transferWeight:
        type: number
      weight:
        type: number
    type: object
  request.AddOperationType:
    properties:
@@ -733,9 +730,6 @@
    type: object
  request.OperationDetails:
    properties:
      finishQuantity:
        description: 完成数量
        type: number
      productId:
        description: 产品id
        type: integer
@@ -745,6 +739,8 @@
      quantity:
        description: 数量
        type: number
      unit:
        type: string
    type: object
  request.UpdateCompany:
    properties:
@@ -774,16 +770,22 @@
  request.UpdateOperation:
    properties:
      carrierID:
        description: 承运商ID-非必填
        type: integer
      carrierName:
        description: 承运商名称-非必填
        type: string
      companyID:
        description: 公司ID-客户
        type: integer
      companyName:
        description: 公司名称-客户名称
        type: string
      contacterID:
        description: 联系人ID-非必填
        type: integer
      contacterName:
        description: 联系人姓名-非必填
        type: string
      details:
        items:
@@ -798,6 +800,7 @@
        description: 单号
        type: string
      operationDate:
        description: 安排日期
        type: string
      operationTypeId:
        description: 作业类型id
@@ -813,10 +816,13 @@
        description: 目标位置id
        type: integer
      tracking:
        description: 追踪参考-非必填
        type: string
      transferWeight:
        description: 物流重量(kg)-非必填
        type: number
      weight:
        description: 重量(kg)-非必填
        type: number
    type: object
  request.UpdateOperationType:
@@ -1169,6 +1175,24 @@
      summary: 修改位置
      tags:
      - 位置
  /api-wms/v1/operation/finish/{id}:
    put:
      parameters:
      - description: id
        in: path
        name: id
        required: true
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 更改记录状态
      tags:
      - 入库/出库
  /api-wms/v1/operation/operation:
    get:
      consumes:
@@ -1284,7 +1308,7 @@
              type: object
      summary: 查询作业类型列表
      tags:
      - 作业类型
      - 业务类型
    post:
      parameters:
      - description: 作业类型信息
@@ -1302,7 +1326,7 @@
            $ref: '#/definitions/util.Response'
      summary: 添加作业类型
      tags:
      - 作业类型
      - 业务类型
  /api-wms/v1/operationType/operationType/{id}:
    delete:
      parameters:
@@ -1320,7 +1344,7 @@
            $ref: '#/definitions/util.Response'
      summary: 删除作业类型
      tags:
      - 作业类型
      - 业务类型
    put:
      parameters:
      - description: 作业类型信息
@@ -1343,7 +1367,7 @@
            $ref: '#/definitions/util.Response'
      summary: 编辑作业类型
      tags:
      - 作业类型
      - 业务类型
  /api-wms/v1/product/addProduct:
    post:
      parameters: