Skip to content

Commit

Permalink
Api restrict (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
cherry-yl-sh authored Jun 24, 2024
1 parent 6223856 commit a4e6024
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 33 deletions.
14 changes: 2 additions & 12 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -153,9 +146,6 @@ const docTemplate = `{
"model.DepositSponsorRequest": {
"type": "object",
"properties": {
"deposit_address": {
"type": "string"
},
"deposit_source": {
"type": "string"
},
Expand Down Expand Up @@ -200,10 +190,10 @@ const docTemplate = `{
"deposit_source": {
"type": "string"
},
"isTestNet": {
"is_test_net": {
"type": "boolean"
},
"payUserId": {
"pay_user_id": {
"type": "string"
},
"refund_address": {
Expand Down
14 changes: 2 additions & 12 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,6 @@
"schema": {
"$ref": "#/definitions/model.WithdrawSponsorRequest"
}
},
{
"type": "boolean",
"description": "Is Test Net",
"name": "is_test_net",
"in": "path",
"required": true
}
],
"responses": {
Expand All @@ -143,9 +136,6 @@
"model.DepositSponsorRequest": {
"type": "object",
"properties": {
"deposit_address": {
"type": "string"
},
"deposit_source": {
"type": "string"
},
Expand Down Expand Up @@ -190,10 +180,10 @@
"deposit_source": {
"type": "string"
},
"isTestNet": {
"is_test_net": {
"type": "boolean"
},
"payUserId": {
"pay_user_id": {
"type": "string"
},
"refund_address": {
Expand Down
11 changes: 2 additions & 9 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ basePath: /api
definitions:
model.DepositSponsorRequest:
properties:
deposit_address:
type: string
deposit_source:
type: string
is_test_net:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a4e6024

Please sign in to comment.