From a4e6024af7f504a399cf78eb2a47614288b3d5cf Mon Sep 17 00:00:00 2001 From: cherry <60910788+cherry-yl-sh@users.noreply.github.com> Date: Mon, 24 Jun 2024 17:53:06 +0800 Subject: [PATCH] Api restrict (#30) --- docs/docs.go | 14 ++------------ docs/swagger.json | 14 ++------------ docs/swagger.yaml | 11 ++--------- 3 files changed, 6 insertions(+), 33 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 7773b095..83e7d3ab 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -132,13 +132,6 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/model.WithdrawSponsorRequest" } - }, - { - "type": "boolean", - "description": "Is Test Net", - "name": "is_test_net", - "in": "path", - "required": true } ], "responses": { @@ -153,9 +146,6 @@ const docTemplate = `{ "model.DepositSponsorRequest": { "type": "object", "properties": { - "deposit_address": { - "type": "string" - }, "deposit_source": { "type": "string" }, @@ -200,10 +190,10 @@ const docTemplate = `{ "deposit_source": { "type": "string" }, - "isTestNet": { + "is_test_net": { "type": "boolean" }, - "payUserId": { + "pay_user_id": { "type": "string" }, "refund_address": { diff --git a/docs/swagger.json b/docs/swagger.json index f5b6663d..35e5da73 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -122,13 +122,6 @@ "schema": { "$ref": "#/definitions/model.WithdrawSponsorRequest" } - }, - { - "type": "boolean", - "description": "Is Test Net", - "name": "is_test_net", - "in": "path", - "required": true } ], "responses": { @@ -143,9 +136,6 @@ "model.DepositSponsorRequest": { "type": "object", "properties": { - "deposit_address": { - "type": "string" - }, "deposit_source": { "type": "string" }, @@ -190,10 +180,10 @@ "deposit_source": { "type": "string" }, - "isTestNet": { + "is_test_net": { "type": "boolean" }, - "payUserId": { + "pay_user_id": { "type": "string" }, "refund_address": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index c16f4f60..50125224 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -2,8 +2,6 @@ basePath: /api definitions: model.DepositSponsorRequest: properties: - deposit_address: - type: string deposit_source: type: string is_test_net: @@ -33,9 +31,9 @@ definitions: type: number deposit_source: type: string - isTestNet: + is_test_net: type: boolean - payUserId: + pay_user_id: type: string refund_address: type: string @@ -123,11 +121,6 @@ paths: required: true schema: $ref: '#/definitions/model.WithdrawSponsorRequest' - - description: Is Test Net - in: path - name: is_test_net - required: true - type: boolean responses: "200": description: OK