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>
35 lines
1.1 KiB
Go
35 lines
1.1 KiB
Go
package unitschema
|
|
|
|
type AccessoryRemove struct {
|
|
AccessoryOwningUserID int `json:"accessory_owning_user_id"`
|
|
UnitOwningUserID int `json:"unit_owning_user_id"`
|
|
}
|
|
|
|
type AccessoryWear struct {
|
|
AccessoryOwningUserID int `json:"accessory_owning_user_id"`
|
|
UnitOwningUserID int `json:"unit_owning_user_id"`
|
|
}
|
|
|
|
type WearAccessoryReq struct {
|
|
Module string `json:"module"`
|
|
Remove []AccessoryRemove `json:"remove"`
|
|
Action string `json:"action"`
|
|
TimeStamp int `json:"timeStamp"`
|
|
Wear []AccessoryWear `json:"wear"`
|
|
Mgd int `json:"mgd"`
|
|
CommandNum string `json:"commandNum"`
|
|
}
|
|
|
|
type WearAccessoryData struct {
|
|
Id int `xorm:"id pk autoincr"`
|
|
AccessoryOwningUserID int `xorm:"accessory_owning_user_id"`
|
|
UnitOwningUserID int `xorm:"unit_owning_user_id"`
|
|
UserID int `xorm:"user_id"`
|
|
}
|
|
|
|
type WearAccessoryResp struct {
|
|
ResponseData []any `json:"response_data"`
|
|
ReleaseInfo []any `json:"release_info"`
|
|
StatusCode int `json:"status_code"`
|
|
}
|