fix: INVITE USER
This commit is contained in:
@@ -6,7 +6,7 @@ syntax = "v1"
|
||||
group: admin
|
||||
)
|
||||
service novatask {
|
||||
@doc "每日钱包签到任务"
|
||||
@doc "给指定邮箱增加待发放奖励"
|
||||
@handler AddEmailReward
|
||||
post /email_reward (EmailReward)
|
||||
|
||||
@@ -16,8 +16,9 @@ service novatask {
|
||||
}
|
||||
|
||||
type EmailReward {
|
||||
Email string `json:"email"`
|
||||
RewardType string `json:"reward_type"`
|
||||
Value float64 `json:"value"`
|
||||
Email string `json:"email"` // 邮箱,多个邮箱分号隔开
|
||||
RewardType string `json:"reward_type"` // 奖励类型: points, elite_points, castile, keys
|
||||
Value float64 `json:"value"` // 数量
|
||||
Remark string `json:"remark"` // 备注
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ type CarvResult {
|
||||
|
||||
type EmailKey {
|
||||
Email string `form:"email"`
|
||||
ApiKey string `Header:"x-api-key"`
|
||||
ApiKey string `header:"x-api-key"`
|
||||
}
|
||||
|
||||
type UnlockChapterReq {
|
||||
Email string `form:"email"`
|
||||
Chapter int `form:"chapter"`
|
||||
ApiKey string `Header:"x-api-key"`
|
||||
ApiKey string `header:"x-api-key"`
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"title": "",
|
||||
"description": "nova api",
|
||||
"version": ""
|
||||
},
|
||||
"schemes": [
|
||||
@@ -15,6 +16,187 @@
|
||||
"application/json"
|
||||
],
|
||||
"paths": {
|
||||
"/gapi/admin/email_reward": {
|
||||
"get": {
|
||||
"summary": "执行发放奖励操作",
|
||||
"operationId": "SendEmailReward",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"admin"
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"summary": "给指定邮箱增加待发放奖励",
|
||||
"operationId": "AddEmailReward",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/EmailReward"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"admin"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/gapi/carv/bind_role": {
|
||||
"get": {
|
||||
"summary": "下载并绑定Castile游戏角色",
|
||||
"operationId": "DownloadAndBindRole",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/CarvResult"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "x-api-key",
|
||||
"in": "header",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"in": "query",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"carv"
|
||||
],
|
||||
"consumes": [
|
||||
"multipart/form-data"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/gapi/carv/bind_wallet": {
|
||||
"get": {
|
||||
"summary": "注册绑定钱包任务",
|
||||
"operationId": "BindWallet",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/CarvResult"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "x-api-key",
|
||||
"in": "header",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"in": "query",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"carv"
|
||||
],
|
||||
"consumes": [
|
||||
"multipart/form-data"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/gapi/carv/check_in_wallet": {
|
||||
"get": {
|
||||
"summary": "每日钱包签到任务",
|
||||
"operationId": "WalletCheckIn",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/CarvResult"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "x-api-key",
|
||||
"in": "header",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"in": "query",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"carv"
|
||||
],
|
||||
"consumes": [
|
||||
"multipart/form-data"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/gapi/carv/unlock_chapter": {
|
||||
"get": {
|
||||
"summary": "游戏主线解锁第x章节",
|
||||
"operationId": "UnlockChapter",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/CarvResult"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "x-api-key",
|
||||
"in": "header",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"in": "query",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "chapter",
|
||||
"in": "query",
|
||||
"required": true,
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"carv"
|
||||
],
|
||||
"consumes": [
|
||||
"multipart/form-data"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/gapi/task/v1/community": {
|
||||
"get": {
|
||||
"summary": "获取社区列表",
|
||||
@@ -253,6 +435,22 @@
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"CarvResult": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"result": {
|
||||
"$ref": "#/definitions/Result"
|
||||
},
|
||||
"error": {
|
||||
"$ref": "#/definitions/Error"
|
||||
}
|
||||
},
|
||||
"title": "CarvResult",
|
||||
"required": [
|
||||
"result",
|
||||
"error"
|
||||
]
|
||||
},
|
||||
"Community": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -294,6 +492,64 @@
|
||||
"end_at"
|
||||
]
|
||||
},
|
||||
"EmailKey": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"title": "EmailKey",
|
||||
"required": [
|
||||
"email"
|
||||
]
|
||||
},
|
||||
"EmailReward": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string",
|
||||
"description": " 邮箱,多个邮箱分号隔开"
|
||||
},
|
||||
"reward_type": {
|
||||
"type": "string",
|
||||
"description": " 奖励类型: points, elite_points, castile, keys"
|
||||
},
|
||||
"value": {
|
||||
"type": "number",
|
||||
"format": "double",
|
||||
"description": " 数量"
|
||||
},
|
||||
"remark": {
|
||||
"type": "string",
|
||||
"description": " 备注"
|
||||
}
|
||||
},
|
||||
"title": "EmailReward",
|
||||
"required": [
|
||||
"email",
|
||||
"reward_type",
|
||||
"value",
|
||||
"remark"
|
||||
]
|
||||
},
|
||||
"Error": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"title": "Error",
|
||||
"required": [
|
||||
"code",
|
||||
"message"
|
||||
]
|
||||
},
|
||||
"GetCommunityListResp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -362,6 +618,19 @@
|
||||
"points"
|
||||
]
|
||||
},
|
||||
"Result": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"isValid": {
|
||||
"type": "boolean",
|
||||
"format": "boolean"
|
||||
}
|
||||
},
|
||||
"title": "Result",
|
||||
"required": [
|
||||
"isValid"
|
||||
]
|
||||
},
|
||||
"StakeNftList": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -380,7 +649,6 @@
|
||||
},
|
||||
"title": "StakeNftList",
|
||||
"required": [
|
||||
"role_id",
|
||||
"token_ids"
|
||||
]
|
||||
},
|
||||
@@ -539,6 +807,23 @@
|
||||
"token_id"
|
||||
]
|
||||
},
|
||||
"UnlockChapterReq": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"chapter": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
},
|
||||
"title": "UnlockChapterReq",
|
||||
"required": [
|
||||
"email",
|
||||
"chapter"
|
||||
]
|
||||
},
|
||||
"UserNft": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
Reference in New Issue
Block a user