fix
zhangqian
2023-10-17 4480763be441c09e9034d6a347587a2b1a5e197a
docs/swagger.yaml
@@ -1233,6 +1233,13 @@
      name:
        type: string
    type: object
  model.RefundType:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.Region:
    properties:
      id:
@@ -1363,7 +1370,7 @@
      solutions:
        type: string
      status_id:
        type: integer
        $ref: '#/definitions/model.Status'
      threats:
        type: string
      whether_established:
@@ -1512,6 +1519,10 @@
    type: object
  model.SalesRefund:
    properties:
      RefundType:
        allOf:
        - $ref: '#/definitions/model.RefundType'
        description: 退款方式
      Source:
        $ref: '#/definitions/model.SalesReturn'
      amountTotal:
@@ -1555,6 +1566,9 @@
        type: string
      refundDate:
        type: string
      refundTypeId:
        description: 退款方式ID
        type: integer
      sourceId:
        description: 源单id
        type: integer
@@ -2301,11 +2315,6 @@
      client_id:
        description: 所属公司ID
        type: integer
      codeRule:
        $ref: '#/definitions/code.CodeStandard'
      codeStandID:
        description: 编码id
        type: string
      country_id:
        description: 国家ID
        type: integer
@@ -2706,6 +2715,13 @@
        type: string
    required:
    - name
    type: object
  request.AddRefundType:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  request.AddRegion:
    properties:
@@ -3369,11 +3385,6 @@
      client_id:
        description: 所属公司ID
        type: integer
      codeRule:
        $ref: '#/definitions/code.CodeStandard'
      codeStandID:
        description: 编码id
        type: string
      country_id:
        description: 国家ID
        type: integer
@@ -3729,6 +3740,9 @@
        type: string
      keywordType:
        $ref: '#/definitions/constvar.SalesDetailsKeywordType'
      number:
        description: 销售子单号
        type: string
      page:
        description: 页码
        type: integer
@@ -4322,11 +4336,6 @@
      client_id:
        description: 所属公司ID
        type: integer
      codeRule:
        $ref: '#/definitions/code.CodeStandard'
      codeStandID:
        description: 编码id
        type: string
      country_id:
        description: 国家ID
        type: integer
@@ -4888,6 +4897,13 @@
        type: array
    required:
    - refund_method
    type: object
  request.UpdateRefundType:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  request.UpdateRegion:
    properties:
@@ -9763,6 +9779,90 @@
      summary: 更新退款方式
      tags:
      - RefundMethod
  /api/refundType/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddRefundType'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加退款方式
      tags:
      - 退款方式管理
  /api/refundType/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/refundType/list:
    get:
      parameters:
      - description: 页码
        in: query
        name: page
        type: integer
      - description: 每页大小
        in: query
        name: pageSize
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/response.ListResponse'
            - properties:
                data:
                  items:
                    $ref: '#/definitions/model.RefundType'
                  type: array
              type: object
      summary: 获取退款方式列表
      tags:
      - 退款方式管理
  /api/refundType/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateRefundType'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新退款方式
      tags:
      - 退款方式管理
  /api/region/add:
    post:
      parameters: