add
wangpengfei
2023-07-12 6bb983c0766c26583493a956f255f87c742db59e
docs/swagger.yaml
@@ -606,6 +606,31 @@
      sales_status:
        $ref: '#/definitions/constvar.SalesStatus'
    type: object
  model.SalesRefund:
    properties:
      accountId:
        type: integer
      clientId:
        type: integer
      id:
        type: integer
      isInvoice:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      reason:
        type: string
      refundDate:
        type: string
      refundMethod:
        type: string
    type: object
  model.SalesSources:
    properties:
      id:
@@ -1044,6 +1069,11 @@
        description: 商机来源ID
        type: integer
    type: object
  request.AddSalesRefundRequest:
    properties:
      salesRefund:
        $ref: '#/definitions/request.SalesRefund'
    type: object
  request.AddSalesReturnRequest:
    properties:
      salesReturn:
@@ -1270,6 +1300,29 @@
        type: string
      wechatOrderStatus:
        type: integer
    type: object
  request.SalesRefund:
    properties:
      accountId:
        type: integer
      clientId:
        type: integer
      isInvoice:
        type: integer
      memberId:
        type: integer
      number:
        type: string
      products:
        items:
          $ref: '#/definitions/model.Product'
        type: array
      reason:
        type: string
      refundDate:
        type: string
      refundMethod:
        type: string
    type: object
  request.SalesReturn:
    properties:
@@ -1905,6 +1958,13 @@
        description: 商机来源ID
        type: integer
    type: object
  request.UpdateSalesRefundRequest:
    properties:
      id:
        type: integer
      salesRefund:
        $ref: '#/definitions/request.SalesRefund'
    type: object
  request.UpdateSalesReturnRequest:
    properties:
      clientId:
@@ -2159,6 +2219,13 @@
      list:
        items:
          $ref: '#/definitions/model.SalesLeads'
        type: array
    type: object
  response.SalesRefundResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SalesRefund'
        type: array
    type: object
  response.SalesSourceResponse:
@@ -4046,6 +4113,79 @@
      summary: 更新销售线索
      tags:
      - SalesLeads
  /api/salesRefund/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddSalesRefundRequest'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加销售退款
      tags:
      - SalesRefund
  /api/salesRefund/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:
      - SalesRefund
  /api/salesRefund/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.SalesRefundResponse'
              type: object
      summary: 销售退款列表
      tags:
      - SalesRefund
  /api/salesRefund/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateSalesRefundRequest'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新销售退款
      tags:
      - SalesRefund
  /api/salesReturn/add:
    post:
      parameters: