fix: carv api param

This commit is contained in:
lianghuanjie
2025-01-09 11:47:51 +08:00
parent d42327bc28
commit 6acad51ebd
4 changed files with 129 additions and 29 deletions

View File

@@ -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
}