fix: carv api param
This commit is contained in:
@@ -20,7 +20,7 @@ service novatask {
|
||||
|
||||
@doc "游戏主线解锁第x章节"
|
||||
@handler UnlockChapter
|
||||
get /unlock_chapter (UnlockChapterReq) returns (CarvResult)
|
||||
get /unlock_chapter/:chapter (UnlockChapterReq) returns (CarvResult)
|
||||
}
|
||||
|
||||
type Result {
|
||||
@@ -38,13 +38,17 @@ type CarvResult {
|
||||
}
|
||||
|
||||
type EmailKey {
|
||||
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 UnlockChapterReq {
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user