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>
23 lines
530 B
Go
23 lines
530 B
Go
package unitapischema
|
|
|
|
type AssetList struct {
|
|
UnitTypeID int `json:"unit_type_id"`
|
|
AssetPath string `json:"asset_path"`
|
|
}
|
|
|
|
type TabList struct {
|
|
TabName string `json:"tab_name"`
|
|
AssetList []AssetList `json:"asset_list"`
|
|
}
|
|
|
|
type AccessoryTabData struct {
|
|
TabList []TabList `json:"tab_list"`
|
|
}
|
|
|
|
type AccessoryTabResp struct {
|
|
Result AccessoryTabData `json:"result"`
|
|
Status int `json:"status"`
|
|
CommandNum bool `json:"commandNum"`
|
|
TimeStamp int64 `json:"timeStamp"`
|
|
}
|