You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
597 B
35 lines
597 B
|
1 year ago
|
package web
|
||
|
|
|
||
|
|
import (
|
||
|
|
"server/modules/web/app"
|
||
|
|
handler "server/modules/web/handler"
|
||
|
|
)
|
||
|
|
|
||
|
|
// swagger:route POST /task/info balance idOfTaskInfo
|
||
|
|
// 任务信息
|
||
|
|
// Responses:
|
||
|
|
// 200:TaskInfoResp
|
||
|
|
|
||
|
|
// swagger:response TaskInfoResp
|
||
|
|
type TaskInfoResp struct {
|
||
|
|
// in:body
|
||
|
|
Body handler.TaskInfoResp
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:route POST /task/draw balance idOfTaskDraw
|
||
|
|
// 领取任务奖励
|
||
|
|
// Responses:
|
||
|
|
// 200:TaskInfoResp
|
||
|
|
|
||
|
|
// swagger:response TaskDrawResp
|
||
|
|
type TaskDrawResp struct {
|
||
|
|
// in:body
|
||
|
|
Body app.R
|
||
|
|
}
|
||
|
|
|
||
|
|
// swagger:parameters idOfTaskDraw
|
||
|
|
type TaskDrawReq struct {
|
||
|
|
// in:body
|
||
|
|
Body handler.DrawTaskReq
|
||
|
|
}
|