zhangqian
2023-09-12 61f1ad8d1fe79ada641a650609d275e2a5d0e0fb
docs/swagger.yaml
@@ -1,18 +1,18 @@
definitions:
  constvar.BaseJobType:
  constvar.BaseOperationType:
    enum:
    - 1
    - 2
    - 3
    type: integer
    x-enum-comments:
      BaseJobTypeIncoming: 收货
      BaseJobTypeInternal: 内部调拨
      BaseJobTypeOutgoing: 交货
      BaseOperationTypeIncoming: 收货
      BaseOperationTypeInternal: 内部调拨
      BaseOperationTypeOutgoing: 交货
    x-enum-varnames:
    - BaseJobTypeIncoming
    - BaseJobTypeOutgoing
    - BaseJobTypeInternal
    - BaseOperationTypeIncoming
    - BaseOperationTypeOutgoing
    - BaseOperationTypeInternal
  constvar.ReservationMethod:
    enum:
    - 1
@@ -80,14 +80,26 @@
        description: 排序
        type: integer
    type: object
  models.JobType:
  models.Location:
    properties:
      createTime:
        type: string
      id:
        type: integer
      name:
        description: 位置名称
        type: string
      updateTime:
        type: string
    type: object
  models.OperationType:
    properties:
      ReservationDaysBeforePriority:
        description: 在优先级的前几天
        type: integer
      baseJobType:
      baseOperationType:
        allOf:
        - $ref: '#/definitions/constvar.BaseJobType'
        - $ref: '#/definitions/constvar.BaseOperationType'
        description: 基础作业类型
      company:
        allOf:
@@ -131,10 +143,10 @@
        allOf:
        - $ref: '#/definitions/constvar.ReservationMethod'
        description: 保留方式
      returnJobType:
      returnOperationType:
        description: 退货类型名称
        type: string
      returnJobTypeID:
      returnOperationTypeID:
        description: 退货类型ID
        type: integer
      showOperations:
@@ -149,18 +161,6 @@
      warehouseId:
        description: 仓库id
        type: integer
    type: object
  models.Location:
    properties:
      createTime:
        type: string
      id:
        type: integer
      name:
        description: 位置名称
        type: string
      updateTime:
        type: string
    type: object
  models.Warehouse:
    properties:
@@ -225,14 +225,14 @@
        description: 备注
        type: string
    type: object
  request.AddJobType:
  request.AddOperationType:
    properties:
      ReservationDaysBeforePriority:
        description: 在优先级的前几天
        type: integer
      baseJobType:
      baseOperationType:
        allOf:
        - $ref: '#/definitions/constvar.BaseJobType'
        - $ref: '#/definitions/constvar.BaseOperationType'
        description: 基础作业类型
      companyId:
        description: 公司id
@@ -262,7 +262,7 @@
        allOf:
        - $ref: '#/definitions/constvar.ReservationMethod'
        description: 保留方式
      returnJobTypeID:
      returnOperationTypeID:
        description: 退货类型ID
        type: integer
      showOperations:
@@ -324,14 +324,14 @@
        description: 备注
        type: string
    type: object
  request.UpdateJobType:
  request.UpdateOperationType:
    properties:
      ReservationDaysBeforePriority:
        description: 在优先级的前几天
        type: integer
      baseJobType:
      baseOperationType:
        allOf:
        - $ref: '#/definitions/constvar.BaseJobType'
        - $ref: '#/definitions/constvar.BaseOperationType'
        description: 基础作业类型
      companyId:
        description: 公司id
@@ -361,7 +361,7 @@
        allOf:
        - $ref: '#/definitions/constvar.ReservationMethod'
        description: 保留方式
      returnJobTypeID:
      returnOperationTypeID:
        description: 退货类型ID
        type: integer
      showOperations:
@@ -598,7 +598,7 @@
      summary: 编辑公司
      tags:
      - 公司
  /api-wms/v1/warehouse/jobType:
  /api-wms/v1/warehouse/operationType:
    get:
      parameters:
      - in: query
@@ -623,7 +623,7 @@
            - properties:
                data:
                  items:
                    $ref: '#/definitions/models.JobType'
                    $ref: '#/definitions/models.OperationType'
                  type: array
              type: object
      summary: 查询作业类型列表
@@ -636,7 +636,7 @@
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddJobType'
          $ref: '#/definitions/request.AddOperationType'
      produces:
      - application/json
      responses:
@@ -647,7 +647,7 @@
      summary: 添加作业类型
      tags:
      - 作业类型
  /api-wms/v1/warehouse/jobType/{id}:
  /api-wms/v1/warehouse/operationType/{id}:
    delete:
      parameters:
      - description: 作业类型id
@@ -672,7 +672,7 @@
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateJobType'
          $ref: '#/definitions/request.UpdateOperationType'
      - description: 作业类型id
        in: path
        name: id