Skip to content

Commit

Permalink
feat: tono command permission manage (#1214)
Browse files Browse the repository at this point in the history
  • Loading branch information
phucledien authored Oct 10, 2023
1 parent 57cfbf6 commit eed50a3
Show file tree
Hide file tree
Showing 17 changed files with 473 additions and 29 deletions.
122 changes: 115 additions & 7 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5112,6 +5112,36 @@ const docTemplate = `{
}
}
},
"/tono/command-permissions": {
"get": {
"description": "Get Tono command permissions",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Tono"
],
"summary": "Get Tono command permissions",
"parameters": [
{
"type": "string",
"name": "code",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.TonoCommandPermissions"
}
}
}
}
},
"/users": {
"post": {
"description": "Create User",
Expand Down Expand Up @@ -7382,6 +7412,32 @@ const docTemplate = `{
}
}
},
"model.TonoCommandPermission": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"created_at": {
"type": "string"
},
"description": {
"type": "string"
},
"discord_permission_flag": {
"type": "string"
},
"id": {
"type": "integer"
},
"need_dm": {
"type": "boolean"
},
"updated_at": {
"type": "string"
}
}
},
"model.User": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -8428,6 +8484,9 @@ const docTemplate = `{
"channel_name": {
"type": "string"
},
"channel_url": {
"type": "string"
},
"each": {
"type": "boolean"
},
Expand Down Expand Up @@ -9501,7 +9560,7 @@ const docTemplate = `{
"address": {
"type": "string"
},
"created_at": {
"createdAt": {
"type": "string"
},
"holders": {
Expand All @@ -9513,22 +9572,22 @@ const docTemplate = `{
"price": {
"type": "number"
},
"price_change_percentage": {
"priceChangePercentage": {
"type": "number"
},
"profile_checked": {
"profileChecked": {
"type": "boolean"
},
"supply": {
"type": "integer"
},
"twitter_pfp_url": {
"twitterPfpUrl": {
"type": "string"
},
"twitter_username": {
"twitterUsername": {
"type": "string"
},
"updated_at": {
"updatedAt": {
"type": "string"
}
}
Expand All @@ -9552,7 +9611,7 @@ const docTemplate = `{
"type": "string"
},
"metadata": {
"$ref": "#/definitions/response.FriendTechKey"
"$ref": "#/definitions/response.TrackedFriendTechKey"
},
"profile_id": {
"type": "string"
Expand Down Expand Up @@ -12213,6 +12272,17 @@ const docTemplate = `{
}
}
},
"response.TonoCommandPermissions": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/model.TonoCommandPermission"
}
}
}
},
"response.TopUser": {
"type": "object",
"properties": {
Expand All @@ -12238,6 +12308,44 @@ const docTemplate = `{
}
}
},
"response.TrackedFriendTechKey": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"created_at": {
"type": "string"
},
"holders": {
"type": "integer"
},
"id": {
"type": "integer"
},
"price": {
"type": "number"
},
"price_change_percentage": {
"type": "number"
},
"profile_checked": {
"type": "boolean"
},
"supply": {
"type": "integer"
},
"twitter_pfp_url": {
"type": "string"
},
"twitter_username": {
"type": "string"
},
"updated_at": {
"type": "string"
}
}
},
"response.TransferTokenV2Data": {
"type": "object",
"properties": {
Expand Down
122 changes: 115 additions & 7 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -5104,6 +5104,36 @@
}
}
},
"/tono/command-permissions": {
"get": {
"description": "Get Tono command permissions",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Tono"
],
"summary": "Get Tono command permissions",
"parameters": [
{
"type": "string",
"name": "code",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.TonoCommandPermissions"
}
}
}
}
},
"/users": {
"post": {
"description": "Create User",
Expand Down Expand Up @@ -7374,6 +7404,32 @@
}
}
},
"model.TonoCommandPermission": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"created_at": {
"type": "string"
},
"description": {
"type": "string"
},
"discord_permission_flag": {
"type": "string"
},
"id": {
"type": "integer"
},
"need_dm": {
"type": "boolean"
},
"updated_at": {
"type": "string"
}
}
},
"model.User": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -8420,6 +8476,9 @@
"channel_name": {
"type": "string"
},
"channel_url": {
"type": "string"
},
"each": {
"type": "boolean"
},
Expand Down Expand Up @@ -9493,7 +9552,7 @@
"address": {
"type": "string"
},
"created_at": {
"createdAt": {
"type": "string"
},
"holders": {
Expand All @@ -9505,22 +9564,22 @@
"price": {
"type": "number"
},
"price_change_percentage": {
"priceChangePercentage": {
"type": "number"
},
"profile_checked": {
"profileChecked": {
"type": "boolean"
},
"supply": {
"type": "integer"
},
"twitter_pfp_url": {
"twitterPfpUrl": {
"type": "string"
},
"twitter_username": {
"twitterUsername": {
"type": "string"
},
"updated_at": {
"updatedAt": {
"type": "string"
}
}
Expand All @@ -9544,7 +9603,7 @@
"type": "string"
},
"metadata": {
"$ref": "#/definitions/response.FriendTechKey"
"$ref": "#/definitions/response.TrackedFriendTechKey"
},
"profile_id": {
"type": "string"
Expand Down Expand Up @@ -12205,6 +12264,17 @@
}
}
},
"response.TonoCommandPermissions": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/model.TonoCommandPermission"
}
}
}
},
"response.TopUser": {
"type": "object",
"properties": {
Expand All @@ -12230,6 +12300,44 @@
}
}
},
"response.TrackedFriendTechKey": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"created_at": {
"type": "string"
},
"holders": {
"type": "integer"
},
"id": {
"type": "integer"
},
"price": {
"type": "number"
},
"price_change_percentage": {
"type": "number"
},
"profile_checked": {
"type": "boolean"
},
"supply": {
"type": "integer"
},
"twitter_pfp_url": {
"type": "string"
},
"twitter_username": {
"type": "string"
},
"updated_at": {
"type": "string"
}
}
},
"response.TransferTokenV2Data": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit eed50a3

Please sign in to comment.