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>
25 lines
700 B
Go
25 lines
700 B
Go
package downloadschema
|
|
|
|
type UpdateReq struct {
|
|
Module string `json:"module"`
|
|
TargetOs string `json:"target_os"`
|
|
InstallVersion string `json:"install_version"`
|
|
TimeStamp int `json:"timeStamp"`
|
|
Action string `json:"action"`
|
|
PackageList []any `json:"package_list"`
|
|
CommandNum string `json:"commandNum"`
|
|
ExternalVersion string `json:"external_version"`
|
|
}
|
|
|
|
type UpdateData struct {
|
|
Size int `json:"size"`
|
|
URL string `json:"url"`
|
|
Version string `json:"version"`
|
|
}
|
|
|
|
type UpdateResp struct {
|
|
ResponseData []UpdateData `json:"response_data"`
|
|
ReleaseInfo []any `json:"release_info"`
|
|
StatusCode int `json:"status_code"`
|
|
}
|