zhangqian
2023-08-10 03b791e466c5db94b196c465fc2e5ac91a2d9890
docs/swagger.yaml
@@ -114,6 +114,20 @@
    type: string
    x-enum-varnames:
    - ReceiptQueryClassExpireLessThen60Days
  constvar.SalesDetailsKeywordType:
    enum:
    - 客户名称
    - 订单编号
    - 签约日期
    - 销售负责人
    - 产品名称
    type: string
    x-enum-varnames:
    - SalesDetailsKeywordTypeCustomerName
    - SalesDetailsKeywordTypeOrderNumber
    - SalesDetailsKeywordTypeSignTime
    - SalesDetailsKeywordTypePrincipal
    - SalesDetailsKeywordTypeProductName
  constvar.SalesStatus:
    enum:
    - 0
@@ -238,6 +252,18 @@
    - UserTypeSuper
    - UserTypePrimary
    - UserTypeSub
  constvar.WechatOrderStatusKeywordType:
    enum:
    - ""
    type: string
    x-enum-varnames:
    - WechatOrderStatusKeywordCustomerName
  constvar.WechatOrderStatusQueryClass:
    enum:
    - ""
    type: string
    x-enum-varnames:
    - WechatOrderStatusQueryClassExpireLessThen60Days
  contextx.Response:
    properties:
      code:
@@ -670,6 +696,10 @@
      principalId:
        description: 销售负责人id
        type: integer
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      sourceId:
        description: 源单id
        type: integer
@@ -832,7 +862,7 @@
  model.Product:
    properties:
      amount:
        type: integer
        type: number
      desc:
        type: string
      id:
@@ -1075,6 +1105,18 @@
        type: string
      addressee:
        type: string
      amountInvoiced:
        description: 已开票金额
        type: number
      amountReceivable:
        description: 应收金额
        type: number
      amountReceived:
        description: 已收金额
        type: number
      amountUnInvoiced:
        description: 未开票金额
        type: number
      client:
        $ref: '#/definitions/model.Client'
      clientId:
@@ -1103,6 +1145,8 @@
        type: array
      remark:
        type: string
      saleChance:
        $ref: '#/definitions/model.SaleChance'
      saleChanceId:
        type: integer
      saleType:
@@ -1110,6 +1154,8 @@
      signTime:
        type: string
      wechatOrderStatus:
        $ref: '#/definitions/model.WechatOrderStatus'
      wechatOrderStatusId:
        type: integer
    type: object
  model.SalesLeads:
@@ -1281,6 +1327,11 @@
      amountReceived:
        description: 已收金额
        type: number
      amountUnInvoiced:
        description: 未开票金额
        type: number
      client:
        $ref: '#/definitions/model.Client'
      clientId:
        type: integer
      contactId:
@@ -1590,6 +1641,13 @@
      username:
        type: string
      uuid:
        type: string
    type: object
  model.WechatOrderStatus:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  product.Product:
@@ -1916,6 +1974,11 @@
      principalId:
        description: 销售负责人id
        type: integer
      products:
        description: 发票对应产品,从相应源单里获取
        items:
          $ref: '#/definitions/model.Product'
        type: array
      sourceId:
        description: 源单id
        type: integer
@@ -2222,8 +2285,42 @@
    type: object
  request.AddSalesDetails:
    properties:
      salesDetails:
        $ref: '#/definitions/request.SalesDetails'
      address:
        type: string
      addressee:
        type: string
      clientId:
        type: integer
      conditions:
        type: string
      deliveryDate:
        type: string
      logisticCompany:
        type: string
      logisticCost:
        type: number
      logisticNumber:
        type: string
      memberId:
        type: integer
      number:
        type: string
      phone:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      remark:
        type: string
      saleChanceId:
        type: integer
      saleType:
        type: integer
      signTime:
        type: string
      wechatOrderStatusId:
        type: integer
    type: object
  request.AddSalesLeads:
    properties:
@@ -2336,6 +2433,8 @@
        type: string
      typeId:
        type: integer
    required:
    - memberId
    type: object
  request.AddServiceContractStatus:
    properties:
@@ -2613,6 +2712,13 @@
    - userId
    - vettingId
    - vettingType
    type: object
  request.AddWechatOrderStatus:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  request.Assign:
    properties:
@@ -2965,6 +3071,8 @@
    properties:
      keyword:
        type: string
      keywordType:
        $ref: '#/definitions/constvar.SalesDetailsKeywordType'
      page:
        description: 页码
        type: integer
@@ -3189,7 +3297,7 @@
        type: integer
      signTime:
        type: string
      wechatOrderStatus:
      wechatOrderStatusId:
        type: integer
    type: object
  request.SalesRefund:
@@ -3711,6 +3819,11 @@
      principalId:
        description: 销售负责人id
        type: integer
      products:
        description: 发票对应产品,从相应源单里获取
        items:
          $ref: '#/definitions/model.Product'
        type: array
      sourceId:
        description: 源单id
        type: integer
@@ -3723,6 +3836,8 @@
      taxpayerIdNumber:
        description: 纳税识别号
        type: string
    required:
    - id
    type: object
  request.UpdateInvoiceStatus:
    properties:
@@ -4383,6 +4498,8 @@
        type: string
      typeId:
        type: integer
    required:
    - memberId
    type: object
  request.UpdateServiceContractStatus:
    properties:
@@ -4717,6 +4834,13 @@
    required:
    - id
    - status
    type: object
  request.UpdateWechatOrderStatus:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  response.AccountIdResponse:
    properties:
@@ -11139,4 +11263,105 @@
      summary: 更新审批
      tags:
      - Vetting
  /api/wechatOrderStatus/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddWechatOrderStatus'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加微信订单状态
      tags:
      - 微信订单状态
  /api/wechatOrderStatus/delete/{id}:
    delete:
      parameters:
      - description: 查询参数
        in: path
        name: id
        required: true
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 删除微信订单状态
      tags:
      - 微信订单状态
  /api/wechatOrderStatus/list:
    get:
      parameters:
      - in: query
        name: keyword
        type: string
      - enum:
        - ""
        in: query
        name: keywordType
        type: string
        x-enum-varnames:
        - WechatOrderStatusKeywordCustomerName
      - description: 页码
        in: query
        name: page
        type: integer
      - description: 每页大小
        in: query
        name: pageSize
        type: integer
      - enum:
        - ""
        in: query
        name: queryClass
        type: string
        x-enum-varnames:
        - WechatOrderStatusQueryClassExpireLessThen60Days
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/response.ListResponse'
            - properties:
                data:
                  items:
                    $ref: '#/definitions/model.WechatOrderStatus'
                  type: array
              type: object
      summary: 获取微信订单状态列表
      tags:
      - 微信订单状态
  /api/wechatOrderStatus/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateWechatOrderStatus'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新微信订单状态
      tags:
      - 微信订单状态
swagger: "2.0"