fix: carv api param
This commit is contained in:
@@ -73,7 +73,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||
{
|
||||
// 游戏主线解锁第x章节
|
||||
Method: http.MethodGet,
|
||||
Path: "/unlock_chapter",
|
||||
Path: "/unlock_chapter/:chapter",
|
||||
Handler: carv.UnlockChapterHandler(serverCtx),
|
||||
},
|
||||
}...,
|
||||
|
||||
@@ -18,8 +18,10 @@ type Community struct {
|
||||
}
|
||||
|
||||
type EmailKey struct {
|
||||
Email string `form:"email"`
|
||||
ApiKey string `header:"x-api-key"`
|
||||
BeginTime int64 `form:"begin_time"` //begin_time
|
||||
EndTime int64 `form:"end_time"` // end_time
|
||||
Email string `form:"email"` // email
|
||||
ApiKey string `header:"x-api-key"` // x-api-key
|
||||
}
|
||||
|
||||
type EmailReward struct {
|
||||
@@ -110,9 +112,11 @@ type UnStakeNftReq struct {
|
||||
}
|
||||
|
||||
type UnlockChapterReq struct {
|
||||
Email string `form:"email"`
|
||||
Chapter int `form:"chapter"`
|
||||
ApiKey string `header:"x-api-key"`
|
||||
BeginTime int64 `form:"begin_time"` //begin_time
|
||||
EndTime int64 `form:"end_time"` // end_time
|
||||
Email string `form:"email"` // email
|
||||
Chapter int `path:"chapter"` // 章节数
|
||||
ApiKey string `header:"x-api-key"` // x-api-key
|
||||
}
|
||||
|
||||
type UserNft struct {
|
||||
|
||||
Reference in New Issue
Block a user