wanjianli
2023-09-18 861a89be3807fb8b9b1e8863adc165cc78bb7700
docs/swagger.yaml
@@ -13,6 +13,49 @@
    - BaseOperationTypeIncoming
    - BaseOperationTypeOutgoing
    - BaseOperationTypeInternal
  constvar.LocationType:
    enum:
    - 1
    - 2
    - 3
    - 4
    - 5
    - 6
    - 7
    type: integer
    x-enum-comments:
      LocationTypeCustomer: 客户位置
      LocationTypeInternal: 内部位置
      LocationTypeInventoryLoss: 库存损失
      LocationTypeProduction: 生产
      LocationTypeTransit: 中转位置
      LocationTypeVendor: 供应商位置
      LocationTypeView: 视图
    x-enum-varnames:
    - LocationTypeVendor
    - LocationTypeView
    - LocationTypeInternal
    - LocationTypeCustomer
    - LocationTypeInventoryLoss
    - LocationTypeProduction
    - LocationTypeTransit
  constvar.OperationStatus:
    enum:
    - 1
    - 2
    - 3
    - 4
    type: integer
    x-enum-comments:
      OperationStatus_Draft: 草稿
      OperationStatus_Finish: 完成
      OperationStatus_Ready: 就绪
      OperationStatus_Waiting: 正在等待
    x-enum-varnames:
    - OperationStatus_Draft
    - OperationStatus_Waiting
    - OperationStatus_Ready
    - OperationStatus_Finish
  constvar.ReservationMethod:
    enum:
    - 1
@@ -82,13 +125,39 @@
    type: object
  models.Location:
    properties:
      company:
        allOf:
        - $ref: '#/definitions/models.Company'
        description: 公司
      companyId:
        description: 公司id
        type: integer
      countFrequency:
        description: 盘点频率(天)
        type: integer
      createTime:
        type: string
      id:
        type: integer
      isReturnLocation:
        description: 是否退货位置
        type: boolean
      isScrapLocation:
        description: 是否报废位置
        type: boolean
      name:
        description: 位置名称
        type: string
      parentId:
        description: 上级id
        type: integer
      replenishLocation:
        description: 是否补充位置
        type: boolean
      type:
        allOf:
        - $ref: '#/definitions/constvar.LocationType'
        description: 位置类型
      updateTime:
        type: string
    type: object
@@ -225,6 +294,36 @@
        description: 备注
        type: string
    type: object
  request.AddOperation:
    properties:
      details:
        items:
          $ref: '#/definitions/request.OperationDetails'
        type: array
      fromLocationId:
        description: 源位置id
        type: integer
      id:
        type: integer
      number:
        description: 单号
        type: string
      operationDate:
        $ref: '#/definitions/util.JSONTime'
      operationTypeId:
        description: 作业类型id
        type: integer
      sourceNumber:
        description: 源单号
        type: string
      status:
        allOf:
        - $ref: '#/definitions/constvar.OperationStatus'
        description: 状态
      toLocationId:
        description: 目标位置id
        type: integer
    type: object
  request.AddOperationType:
    properties:
      ReservationDaysBeforePriority:
@@ -298,6 +397,21 @@
        type: array
    required:
    - code
    type: object
  request.OperationDetails:
    properties:
      finishQuantity:
        description: 完成数量
        type: number
      productId:
        description: 产品id
        type: integer
      productName:
        description: 产品名称
        type: string
      quantity:
        description: 数量
        type: number
    type: object
  request.UpdateCompany:
    properties:
@@ -399,6 +513,11 @@
        type: array
    required:
    - code
    type: object
  util.JSONTime:
    properties:
      time.Time:
        type: string
    type: object
  util.Response:
    properties:
@@ -598,6 +717,25 @@
      summary: 编辑公司
      tags:
      - 公司
  /api-wms/v1/operation/operation:
    post:
      parameters:
      - description: 入库/出库信息
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddOperation'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 添加入库/出库
      tags:
      - 入库/出库
  /api-wms/v1/warehouse/operationType:
    get:
      parameters: