liujiandao
2023-10-21 4b2c52b17abef8521f9211b4865e1cad0288b12a
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:
@@ -1367,7 +1374,7 @@
      solutions:
        type: string
      status_id:
        type: integer
        $ref: '#/definitions/model.Status'
      threats:
        type: string
      whether_established:
@@ -1516,6 +1523,10 @@
    type: object
  model.SalesRefund:
    properties:
      RefundType:
        allOf:
        - $ref: '#/definitions/model.RefundType'
        description: 退款方式
      Source:
        $ref: '#/definitions/model.SalesReturn'
      amountTotal:
@@ -1559,6 +1570,9 @@
        type: string
      refundDate:
        type: string
      refundTypeId:
        description: 退款方式ID
        type: integer
      sourceId:
        description: 源单id
        type: integer
@@ -2705,6 +2719,13 @@
        type: string
    required:
    - name
    type: object
  request.AddRefundType:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  request.AddRegion:
    properties:
@@ -4884,6 +4905,13 @@
        type: array
    required:
    - refund_method
    type: object
  request.UpdateRefundType:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  request.UpdateRegion:
    properties:
@@ -9763,6 +9791,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: