Files
honoka-chan/internal/schema/api/live/status.go
T
YumeMichi 150ce674ad Implement more endpoints & overhaul [2/n]
Drop LevelDB and move all the things to SQLite.

Implemented endpoints:
/api <unit, accessoryMaterialAll>
/api <unit, accessoryTab>
/live/continue
/live/partyList
/unit/favoriteAccessory (WIP)
/unit/sale

Signed-off-by: Sean Du <do4suki@gmail.com>
2026-04-28 11:44:56 +08:00

45 lines
1.7 KiB
Go

package liveapischema
type NormalLiveStatusList struct {
LiveDifficultyID int `json:"live_difficulty_id"`
Status int `json:"status"`
HiScore int `json:"hi_score"`
HiComboCount int `json:"hi_combo_count"`
ClearCnt int `json:"clear_cnt"`
AchievedGoalIDList []int `json:"achieved_goal_id_list"`
}
type SpecialLiveStatusList struct {
LiveDifficultyID int `json:"live_difficulty_id"`
Status int `json:"status"`
HiScore int `json:"hi_score"`
HiComboCount int `json:"hi_combo_count"`
ClearCnt int `json:"clear_cnt"`
AchievedGoalIDList []int `json:"achieved_goal_id_list"`
}
type TrainingLiveStatusList struct {
LiveDifficultyID int `json:"live_difficulty_id"`
Status int `json:"status"`
HiScore int `json:"hi_score"`
HiComboCount int `json:"hi_combo_count"`
ClearCnt int `json:"clear_cnt"`
AchievedGoalIDList []int `json:"achieved_goal_id_list"`
}
type StatusData struct {
NormalLiveStatusList []NormalLiveStatusList `json:"normal_live_status_list"`
SpecialLiveStatusList []SpecialLiveStatusList `json:"special_live_status_list"`
TrainingLiveStatusList []TrainingLiveStatusList `json:"training_live_status_list"`
MarathonLiveStatusList []any `json:"marathon_live_status_list"`
FreeLiveStatusList []any `json:"free_live_status_list"`
CanResumeLive bool `json:"can_resume_live"`
}
type StatusResp struct {
Result StatusData `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}