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:
@@ -1,4 +1,4 @@
|
||||
package unit
|
||||
package unitapischema
|
||||
|
||||
type AccessoryList struct {
|
||||
AccessoryOwningUserID int `json:"accessory_owning_user_id" xorm:"accessory_owning_user_id"`
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
package unitapischema
|
||||
|
||||
type AccessoryMaterialList struct {
|
||||
AccessoryID int `json:"accessory_id"`
|
||||
Amount int `json:"amount"`
|
||||
}
|
||||
|
||||
type AccessoryMaterialAllData struct {
|
||||
AccessoryMaterialList []AccessoryMaterialList `json:"accessory_material_list"`
|
||||
}
|
||||
|
||||
type AccessoryMaterialAllResp struct {
|
||||
Result AccessoryMaterialAllData `json:"result"`
|
||||
Status int `json:"status"`
|
||||
CommandNum bool `json:"commandNum"`
|
||||
TimeStamp int64 `json:"timeStamp"`
|
||||
}
|
||||
@@ -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"`
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package unit
|
||||
package unitapischema
|
||||
|
||||
type Costume struct {
|
||||
UnitID int `json:"unit_id"`
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package unit
|
||||
package unitapischema
|
||||
|
||||
type UserDeckData struct {
|
||||
ID int `xorm:"id pk autoincr"`
|
||||
@@ -26,7 +26,7 @@ type UnitDeckData struct {
|
||||
IsSigned bool `xorm:"is_signed" json:"is_signed"`
|
||||
BeforeLove int `xorm:"before_love" json:"before_love"`
|
||||
MaxLove int `xorm:"max_love" json:"max_love"`
|
||||
InsertData int64 `xorm:"insert_date" json:"-"`
|
||||
InsertDate int64 `xorm:"insert_date" json:"-"`
|
||||
}
|
||||
|
||||
type UnitOwningUserIds struct {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package unit
|
||||
package unitapischema
|
||||
|
||||
type SkillEquipCount struct {
|
||||
UnitRemovableSkillId int `xorm:"unit_removable_skill_id"`
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package unit
|
||||
package unitapischema
|
||||
|
||||
type SupporterList struct {
|
||||
UnitID int `json:"unit_id"`
|
||||
|
||||
Reference in New Issue
Block a user