@@ -0,0 +1,30 @@
|
||||
package unit
|
||||
|
||||
type AccessoryList struct {
|
||||
AccessoryOwningUserID int `json:"accessory_owning_user_id" xorm:"accessory_owning_user_id"`
|
||||
AccessoryID int `json:"accessory_id" xorm:"accessory_id"`
|
||||
Exp int `json:"exp" xorm:"exp"`
|
||||
NextExp int `json:"next_exp" xorm:"-"`
|
||||
Level int `json:"level" xorm:"-"`
|
||||
MaxLevel int `json:"max_level" xorm:"-"`
|
||||
RankUpCount int `json:"rank_up_count" xorm:"-"`
|
||||
FavoriteFlag bool `json:"favorite_flag" xorm:"-"`
|
||||
}
|
||||
|
||||
type WearingInfo struct {
|
||||
UnitOwningUserID int `json:"unit_owning_user_id" xorm:"unit_owning_user_id"`
|
||||
AccessoryOwningUserID int `json:"accessory_owning_user_id" xorm:"accessory_owning_user_id"`
|
||||
}
|
||||
|
||||
type AccessoryAllData struct {
|
||||
AccessoryList []AccessoryList `json:"accessory_list"`
|
||||
WearingInfo []WearingInfo `json:"wearing_info"`
|
||||
EspecialCreateFlag bool `json:"especial_create_flag"`
|
||||
}
|
||||
|
||||
type AccessoryAllResp struct {
|
||||
Result AccessoryAllData `json:"result"`
|
||||
Status int `json:"status"`
|
||||
CommandNum bool `json:"commandNum"`
|
||||
TimeStamp int64 `json:"timeStamp"`
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package unit
|
||||
|
||||
type Costume struct {
|
||||
UnitID int `json:"unit_id"`
|
||||
IsRankMax bool `json:"is_rank_max"`
|
||||
IsSigned bool `json:"is_signed"`
|
||||
}
|
||||
|
||||
type Active struct {
|
||||
UnitOwningUserID int `xorm:"unit_owning_user_id pk autoincr" json:"unit_owning_user_id"`
|
||||
UserID int `xorm:"user_id" json:"-"`
|
||||
UnitID int `xorm:"unit_id" json:"unit_id"`
|
||||
Exp int `xorm:"exp" json:"exp"`
|
||||
NextExp int `xorm:"next_exp" json:"next_exp"`
|
||||
Level int `xorm:"level" json:"level"`
|
||||
MaxLevel int `xorm:"max_level" json:"max_level"`
|
||||
LevelLimitID int `xorm:"level_limit_id" json:"level_limit_id"`
|
||||
Rank int `xorm:"rank" json:"rank"`
|
||||
MaxRank int `xorm:"max_rank" json:"max_rank"`
|
||||
Love int `xorm:"love" json:"love"`
|
||||
MaxLove int `xorm:"max_love" json:"max_love"`
|
||||
UnitSkillExp int `xorm:"unit_skill_exp" json:"unit_skill_exp"`
|
||||
UnitSkillLevel int `xorm:"unit_skill_level" json:"unit_skill_level"`
|
||||
MaxHp int `xorm:"max_hp" json:"max_hp"`
|
||||
UnitRemovableSkillCapacity int `xorm:"unit_removable_skill_capacity" json:"unit_removable_skill_capacity"`
|
||||
FavoriteFlag bool `xorm:"favorite_flag" json:"favorite_flag"`
|
||||
DisplayRank int `xorm:"display_rank" json:"display_rank"`
|
||||
IsRankMax bool `xorm:"is_rank_max" json:"is_rank_max"`
|
||||
IsLoveMax bool `xorm:"is_love_max" json:"is_love_max"`
|
||||
IsLevelMax bool `xorm:"is_level_max" json:"is_level_max"`
|
||||
IsSigned bool `xorm:"is_signed" json:"is_signed"`
|
||||
IsSkillLevelMax bool `xorm:"is_skill_level_max" json:"is_skill_level_max"`
|
||||
IsRemovableSkillCapacityMax bool `xorm:"is_removable_skill_capacity_max" json:"is_removable_skill_capacity_max"`
|
||||
InsertDate string `xorm:"insert_date" json:"insert_date"`
|
||||
// Costume Costume `json:"costume"`
|
||||
}
|
||||
|
||||
type Waiting struct {
|
||||
UnitOwningUserID int64 `json:"unit_owning_user_id"`
|
||||
UnitID int `json:"unit_id"`
|
||||
Exp int `json:"exp"`
|
||||
NextExp int `json:"next_exp"`
|
||||
Level int `json:"level"`
|
||||
MaxLevel int `json:"max_level"`
|
||||
LevelLimitID int `json:"level_limit_id"`
|
||||
Rank int `json:"rank"`
|
||||
MaxRank int `json:"max_rank"`
|
||||
Love int `json:"love"`
|
||||
MaxLove int `json:"max_love"`
|
||||
UnitSkillExp int `json:"unit_skill_exp"`
|
||||
UnitSkillLevel int `json:"unit_skill_level"`
|
||||
MaxHp int `json:"max_hp"`
|
||||
UnitRemovableSkillCapacity int `json:"unit_removable_skill_capacity"`
|
||||
FavoriteFlag bool `json:"favorite_flag"`
|
||||
DisplayRank int `json:"display_rank"`
|
||||
IsRankMax bool `json:"is_rank_max"`
|
||||
IsLoveMax bool `json:"is_love_max"`
|
||||
IsLevelMax bool `json:"is_level_max"`
|
||||
IsSigned bool `json:"is_signed"`
|
||||
IsSkillLevelMax bool `json:"is_skill_level_max"`
|
||||
IsRemovableSkillCapacityMax bool `json:"is_removable_skill_capacity_max"`
|
||||
InsertDate string `json:"insert_date"`
|
||||
}
|
||||
|
||||
type AllData struct {
|
||||
Active []Active `json:"active"`
|
||||
Waiting []Waiting `json:"waiting"`
|
||||
}
|
||||
|
||||
type AllResp struct {
|
||||
Result AllData `json:"result"`
|
||||
Status int `json:"status"`
|
||||
CommandNum bool `json:"commandNum"`
|
||||
TimeStamp int64 `json:"timeStamp"`
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package unit
|
||||
|
||||
type UserDeckData struct {
|
||||
ID int `xorm:"id pk autoincr"`
|
||||
DeckID int `xorm:"deck_id"`
|
||||
MainFlag int `xorm:"main_flag"`
|
||||
DeckName string `xorm:"deck_name"`
|
||||
UserID int `xorm:"user_id"`
|
||||
InsertDate int64 `xorm:"insert_date"`
|
||||
}
|
||||
|
||||
type UnitDeckData struct {
|
||||
ID int `xorm:"id pk autoincr" json:"-"`
|
||||
UserDeckID int `xorm:"user_deck_id" json:"-"`
|
||||
UnitOwningUserID int `xorm:"unit_owning_user_id" json:"unit_owning_user_id"`
|
||||
UnitID int `xorm:"unit_id" json:"unit_id"`
|
||||
Position int `xorm:"position" json:"position"`
|
||||
Level int `xorm:"level" json:"level"`
|
||||
LevelLimitID int `xorm:"level_limit_id" json:"level_limit_id"`
|
||||
DisplayRank int `xorm:"display_rank" json:"display_rank"`
|
||||
Love int `xorm:"love" json:"love"`
|
||||
UnitSkillLevel int `xorm:"unit_skill_level" json:"unit_skill_level"`
|
||||
IsRankMax bool `xorm:"is_rank_max" json:"is_rank_max"`
|
||||
IsLoveMax bool `xorm:"is_love_max" json:"is_love_max"`
|
||||
IsLevelMax bool `xorm:"is_level_max" json:"is_level_max"`
|
||||
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:"-"`
|
||||
}
|
||||
|
||||
type UnitOwningUserIds struct {
|
||||
Position int `json:"position"`
|
||||
UnitOwningUserID int `json:"unit_owning_user_id"`
|
||||
}
|
||||
|
||||
type DeckInfoData struct {
|
||||
UnitDeckID int `json:"unit_deck_id"`
|
||||
MainFlag bool `json:"main_flag"`
|
||||
DeckName string `json:"deck_name"`
|
||||
UnitOwningUserIds []UnitOwningUserIds `json:"unit_owning_user_ids"`
|
||||
}
|
||||
|
||||
type DeckInfoResp struct {
|
||||
Result []DeckInfoData `json:"result"`
|
||||
Status int `json:"status"`
|
||||
CommandNum bool `json:"commandNum"`
|
||||
TimeStamp int64 `json:"timeStamp"`
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package unit
|
||||
|
||||
type SkillEquipCount struct {
|
||||
UnitRemovableSkillId int `xorm:"unit_removable_skill_id"`
|
||||
Count int `xorm:"ct"`
|
||||
}
|
||||
|
||||
type SkillEquipData struct {
|
||||
Id int `xorm:"id pk autoincr"`
|
||||
UnitRemovableSkillId int `xorm:"unit_removable_skill_id"`
|
||||
UnitOwningUserID int `xorm:"unit_owning_user_id"`
|
||||
UserId string `xorm:"user_id"`
|
||||
}
|
||||
|
||||
type SkillEquipDetail struct {
|
||||
UnitRemovableSkillID int `json:"unit_removable_skill_id" xorm:"unit_removable_skill_id"`
|
||||
}
|
||||
|
||||
type SkillEquipList struct {
|
||||
UnitOwningUserID int `json:"unit_owning_user_id"`
|
||||
Detail []SkillEquipDetail `json:"detail"`
|
||||
}
|
||||
|
||||
type OwningInfo struct {
|
||||
UnitRemovableSkillID int `json:"unit_removable_skill_id"`
|
||||
TotalAmount int `json:"total_amount"`
|
||||
EquippedAmount int `json:"equipped_amount"`
|
||||
InsertDate string `json:"insert_date"`
|
||||
}
|
||||
|
||||
type RemovableSkillInfoData struct {
|
||||
OwningInfo []OwningInfo `json:"owning_info"`
|
||||
EquipmentInfo map[int]any `json:"equipment_info"`
|
||||
}
|
||||
|
||||
type RemovableSkillInfoResp struct {
|
||||
Result RemovableSkillInfoData `json:"result"`
|
||||
Status int `json:"status"`
|
||||
CommandNum bool `json:"commandNum"`
|
||||
TimeStamp int64 `json:"timeStamp"`
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package unit
|
||||
|
||||
type SupporterList struct {
|
||||
UnitID int `json:"unit_id"`
|
||||
Amount int `json:"amount"`
|
||||
}
|
||||
|
||||
type SupporterAllData struct {
|
||||
UnitSupportList []SupporterList `json:"unit_support_list"`
|
||||
}
|
||||
|
||||
type SupporterAllResp struct {
|
||||
Result SupporterAllData `json:"result"`
|
||||
Status int `json:"status"`
|
||||
CommandNum bool `json:"commandNum"`
|
||||
TimeStamp int64 `json:"timeStamp"`
|
||||
}
|
||||
Reference in New Issue
Block a user