liujiandao
2024-03-07 63558d60419edd772f8f8c8b413326d4550783f0
docs/swagger.yaml
@@ -1,4 +1,45 @@
definitions:
  code.CodeAuto:
    properties:
      AutoLength:
        type: integer
      Desc:
        type: string
      PrefixMethod:
        type: integer
      PrefixValue:
        type: string
      SuffixMethod:
        type: integer
    type: object
  code.CodeRule:
    properties:
      Desc:
        type: string
      Length:
        type: integer
      Name:
        type: string
    type: object
  code.CodeStandard:
    properties:
      AutoRule:
        $ref: '#/definitions/code.CodeAuto'
      ID:
        type: string
      List:
        items:
          $ref: '#/definitions/code.CodeRule'
        type: array
      Method:
        type: integer
      Name:
        type: string
      Status:
        type: string
      Type:
        type: string
    type: object
  config.CORS:
    properties:
      mode:
@@ -401,7 +442,8 @@
        type: string
      id:
        description: 主键ID
        type: integer
        example: "0"
        type: string
      invoiceAmount:
        description: 已收票金额
        type: number
@@ -431,13 +473,14 @@
        - $ref: '#/definitions/purchase.PriceAdjustmentType'
        description: 价格调整类型
      principal:
        description: 采购负责人
        description: 仓库负责人
        type: string
      purchaseType:
        $ref: '#/definitions/purchase.PurchaseType'
      purchaseTypeId:
        description: 采购类型id
        type: integer
        example: "0"
        type: string
      quantity:
        description: 采购数量
        type: number
@@ -453,6 +496,9 @@
      signingDate:
        description: 签约日期
        type: string
      sourceOrder:
        description: 来源单据
        type: string
      status:
        allOf:
        - $ref: '#/definitions/purchase.OrderStatus'
@@ -461,7 +507,8 @@
        $ref: '#/definitions/test.Supplier'
      supplierId:
        description: 供应商id
        type: integer
        example: "0"
        type: string
      totalPrice:
        description: 价税合计
        type: number
@@ -472,6 +519,9 @@
        type: string
      warehouse:
        description: 收货仓库
        type: string
      warehouseAddress:
        description: 收货仓库地址
        type: string
      wholeDiscount:
        description: 整单折扣值
@@ -515,7 +565,8 @@
        type: string
      id:
        description: 主键ID
        type: integer
        example: "0"
        type: string
      name:
        description: 采购类型
        type: string
@@ -539,6 +590,25 @@
    x-enum-varnames:
    - WholeDiscountTypePercent
    - WholeDiscountTypeDiscount
  purchase_wms.SrmGetWarehouseInfoResponse:
    properties:
      info:
        items:
          $ref: '#/definitions/purchase_wms.SrmWarehouseInfo'
        type: array
    type: object
  purchase_wms.SrmWarehouseInfo:
    properties:
      address:
        description: 仓库地址
        type: string
      name:
        description: 仓库名
        type: string
      principal:
        description: 仓库负责人
        type: string
    type: object
  purchaserequest.AddPurchase:
    properties:
      productList:
@@ -558,7 +628,8 @@
        type: string
      id:
        description: 主键ID
        type: integer
        example: "0"
        type: string
      name:
        description: 采购名称
        type: string
@@ -578,9 +649,13 @@
        allOf:
        - $ref: '#/definitions/purchase.PriceAdjustmentType'
        description: 价格调整类型
      principal:
        description: 仓库负责人
        type: string
      purchaseTypeId:
        description: 采购类型id
        type: integer
        example: "0"
        type: string
      quantity:
        description: 采购数量
        type: number
@@ -593,16 +668,26 @@
      signingDate:
        description: 签约日期
        type: string
      sourceOrder:
        description: 来源单据
        type: string
      status:
        allOf:
        - $ref: '#/definitions/purchase.OrderStatus'
        description: 状态
      supplierId:
        description: 供应商id
        type: integer
        example: "0"
        type: string
      totalPrice:
        description: 价税合计
        type: number
      warehouse:
        description: 收货仓库
        type: string
      warehouseAddress:
        description: 收货仓库地址
        type: string
      wholeDiscount:
        description: 整单折扣值
        type: number
@@ -615,7 +700,8 @@
    properties:
      id:
        description: 主键ID
        type: integer
        example: "0"
        type: string
      name:
        description: 采购类型
        type: string
@@ -634,12 +720,6 @@
        type: array
      purchase:
        $ref: '#/definitions/purchaserequest.Purchase'
    type: object
  request.GetById:
    properties:
      id:
        description: 主键ID
        type: integer
    type: object
  request.IdsReq:
    properties:
@@ -741,6 +821,9 @@
        type: integer
      purchasePrice:
        type: number
      remark:
        description: 描述
        type: string
      shippingDuration:
        type: integer
      specifications:
@@ -767,6 +850,12 @@
      data: {}
      msg:
        type: string
    type: object
  srm_model_common_request.GetById:
    properties:
      id:
        description: 主键ID
        type: integer
    type: object
  system.System:
    properties:
@@ -837,7 +926,8 @@
        type: integer
      id:
        description: 主键ID
        type: integer
        example: "0"
        type: string
      industry:
        type: string
      name:
@@ -914,6 +1004,68 @@
  title: Swagger Example API
  version: 0.0.1
paths:
  /code/getAutoCode:
    post:
      parameters:
      - description: 参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/code.CodeStandard'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/response.Response'
            - properties:
                data:
                  additionalProperties: true
                  type: object
              type: object
      summary: 获取自动编码
      tags:
      - 编码
  /code/getCodeList:
    get:
      parameters:
      - in: query
        name: codeStandID
        type: string
      - in: query
        name: name
        type: string
      - description: 页码
        in: query
        name: page
        type: integer
      - description: 每页大小
        in: query
        name: pageSize
        type: integer
      - in: query
        name: type
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/response.Response'
            - properties:
                data:
                  items:
                    $ref: '#/definitions/code.CodeStandard'
                  type: array
              type: object
      summary: 获取编码列表
      tags:
      - 编码
  /con/createContract:
    post:
      consumes:
@@ -1566,7 +1718,7 @@
        name: data
        required: true
        schema:
          $ref: '#/definitions/request.GetById'
          $ref: '#/definitions/srm_model_common_request.GetById'
      produces:
      - application/json
      responses:
@@ -1815,6 +1967,58 @@
      summary: 预览Contract
      tags:
      - Contract
  /purchase/getOperationInfo/{id}:
    get:
      consumes:
      - application/json
      produces:
      - application/json
      responses:
        "200":
          description: 获取采购类型列表
          schema:
            allOf:
            - $ref: '#/definitions/response.Response'
            - properties:
                data:
                  items:
                    $ref: '#/definitions/purchase_wms.SrmGetWarehouseInfoResponse'
                  type: array
              type: object
      security:
      - ApiKeyAuth: []
      summary: 获取操作信息
      tags:
      - Purchase
  /purchase/getWarehouseInfo:
    get:
      consumes:
      - application/json
      parameters:
      - description: 采购单ID
        in: path
        name: id
        required: true
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: 获取采购类型列表
          schema:
            allOf:
            - $ref: '#/definitions/response.Response'
            - properties:
                data:
                  items:
                    $ref: '#/definitions/purchase_wms.SrmGetWarehouseInfoResponse'
                  type: array
              type: object
      security:
      - ApiKeyAuth: []
      summary: 获取仓库列表
      tags:
      - Purchase
  /purchase/purchase:
    post:
      consumes:
@@ -2209,9 +2413,10 @@
        name: fileId
        type: integer
      - description: 主键ID
        example: "0"
        in: query
        name: id
        type: integer
        type: string
      - in: query
        name: industry
        type: string
@@ -2306,9 +2511,10 @@
        name: fileId
        type: integer
      - description: 主键ID
        example: "0"
        in: query
        name: id
        type: integer
        type: string
      - in: query
        name: industry
        type: string