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>
This commit is contained in:
2026-04-28 11:44:56 +08:00
parent 1500821f3e
commit 150ce674ad
218 changed files with 2993 additions and 2160 deletions
+24 -6
View File
@@ -1,4 +1,4 @@
package live
package liveschema
type PlayScoreReq struct {
Module string `json:"module"`
@@ -18,7 +18,9 @@ type On struct {
PreciseList any `json:"precise_list"`
DeckInfo any `json:"deck_info"`
TapAdjust any `json:"tap_adjust"`
LiveSetting any `json:"live_setting,omitempty"`
CanReplay bool `json:"can_replay"`
TriggerLog any `json:"trigger_log,omitempty"`
}
type Off struct {
@@ -30,19 +32,35 @@ type Off struct {
PreciseList any `json:"precise_list"`
DeckInfo any `json:"deck_info"`
TapAdjust any `json:"tap_adjust"`
LiveSetting any `json:"live_setting,omitempty"`
CanReplay bool `json:"can_replay"`
TriggerLog any `json:"trigger_log,omitempty"`
}
type Skill struct {
HasRecord bool `json:"has_record"`
LiveInfo LiveInfo `json:"live_info"`
RandomSeed any `json:"random_seed"`
MaxCombo any `json:"max_combo"`
UpdateDate any `json:"update_date"`
PreciseList any `json:"precise_list"`
DeckInfo any `json:"deck_info"`
TapAdjust any `json:"tap_adjust"`
LiveSetting any `json:"live_setting,omitempty"`
CanReplay bool `json:"can_replay"`
TriggerLog any `json:"trigger_log,omitempty"`
}
type PreciseScoreData struct {
On On `json:"on"`
Off Off `json:"off"`
On Skill `json:"on"`
Off Skill `json:"off"`
RankInfo []RankInfo `json:"rank_info"`
CanActivateEffect bool `json:"can_activate_effect"`
ServerTimestamp int64 `json:"server_timestamp"`
}
type PreciseScoreResp struct {
ResponseData PreciseScoreData `json:"response_data"`
ReleaseInfo []any `json:"release_info"`
StatusCode int `json:"status_code"`
ResponseData any `json:"response_data"`
ReleaseInfo []any `json:"release_info"`
StatusCode int `json:"status_code"`
}