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:
@@ -0,0 +1,22 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user