From 4b2c52b17abef8521f9211b4865e1cad0288b12a Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期六, 21 十月 2023 17:47:50 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/crm --- docs/swagger.yaml | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 113 insertions(+), 1 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index da4a29b..6cdd1f3 100644 --- a/docs/swagger.yaml +++ b/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: 閫�娆炬柟寮廔D + 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: -- Gitblit v1.8.0