Code cleanup

Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
2023-04-24 17:50:39 +08:00
parent e1e0e8c27d
commit 327b4a222b
56 changed files with 907 additions and 1610 deletions
+4 -2
View File
@@ -1,6 +1,6 @@
package model
// module: album, action: albumAll
// AlbumResult ...
type AlbumResult struct {
UnitID int `json:"unit_id"`
RankMaxFlag bool `json:"rank_max_flag"`
@@ -13,6 +13,7 @@ type AlbumResult struct {
SignFlag bool `json:"sign_flag"`
}
// AlbumResp ...
type AlbumResp struct {
Result []AlbumResult `json:"result"`
Status int `json:"status"`
@@ -20,12 +21,13 @@ type AlbumResp struct {
TimeStamp int64 `json:"timeStamp"`
}
// albumSeries
// AlbumSeriesRes ...
type AlbumSeriesRes struct {
SeriesID int `json:"series_id"`
UnitList []AlbumResult `json:"unit_list"`
}
// AlbumSeriesResp ...
type AlbumSeriesResp struct {
ResponseData []AlbumSeriesRes `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
+9 -21
View File
@@ -1,29 +1,17 @@
package model
type SifApi struct {
import "encoding/json"
// ApiReq ...
type ApiReq struct {
Module string `json:"module"`
Action string `json:"action"`
Timestamp int64 `json:"timeStamp"`
}
type MuseumInfoParameter struct {
Smile int `json:"smile"`
Pure int `json:"pure"`
Cool int `json:"cool"`
}
type MuseumInfo struct {
Parameter MuseumInfoParameter `json:"parameter"`
ContentsIDList []int `json:"contents_id_list"`
}
type MuseumInfoResult struct {
MuseumInfo MuseumInfo `json:"museum_info"`
}
type MuseumInfoResp struct {
Result MuseumInfoResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
// ApiResp ...
type ApiResp struct {
ResponseData json.RawMessage `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"`
}
+20
View File
@@ -6,3 +6,23 @@ type AwardSetResp struct {
ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"`
}
// AwardInfo ...
type AwardInfo struct {
AwardID int `json:"award_id"`
IsSet bool `json:"is_set"`
InsertDate string `json:"insert_date"`
}
// AwardInfoRes ...
type AwardInfoRes struct {
AwardInfo []AwardInfo `json:"award_info"`
}
// AwardInfoResp ...
type AwardInfoResp struct {
Result AwardInfoRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
+20
View File
@@ -6,3 +6,23 @@ type BackgroundSetResp struct {
ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"`
}
// BackgroundInfo ...
type BackgroundInfo struct {
BackgroundID int `json:"background_id"`
IsSet bool `json:"is_set"`
InsertDate string `json:"insert_date"`
}
// BackgroundInfoRes ...
type BackgroundInfoRes struct {
BackgroundInfo []BackgroundInfo `json:"background_info"`
}
// BackgroundInfoResp ...
type BackgroundInfoResp struct {
Result BackgroundInfoRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
+7 -5
View File
@@ -14,14 +14,16 @@ type BannerList struct {
WebviewURL string `json:"webview_url,omitempty"`
}
type BannerListResult struct {
// BannerListRes ...
type BannerListRes struct {
TimeLimit string `json:"time_limit"`
BannerList []BannerList `json:"banner_list"`
}
// BannerListResp ...
type BannerListResp struct {
Result BannerListResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
Result BannerListRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
+9
View File
@@ -0,0 +1,9 @@
package model
// ChallengeInfoResp ...
type ChallengeInfoResp struct {
Result []interface{} `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
+8 -6
View File
@@ -1,19 +1,21 @@
package model
// module: costume, action: costumeList
// CostumeList ...
type CostumeList struct {
UnitID int `json:"unit_id"`
IsRankMax bool `json:"is_rank_max"`
IsSigned bool `json:"is_signed"`
}
type CostumeListResult struct {
// CostumeListRes ...
type CostumeListRes struct {
CostumeList []CostumeList `json:"costume_list"`
}
// CostumeListResp ...
type CostumeListResp struct {
Result CostumeListResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
Result CostumeListRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
+25 -12
View File
@@ -1,5 +1,6 @@
package model
// AdditionalReq ...
type AdditionalReq struct {
Module string `json:"module"`
Mgd int `json:"mgd"`
@@ -11,17 +12,20 @@ type AdditionalReq struct {
CommandNum string `json:"commandNum"`
}
type AdditionalResult struct {
// AdditionalRes ...
type AdditionalRes struct {
Size int `json:"size"`
URL string `json:"url"`
}
// AdditionalResp ...
type AdditionalResp struct {
ResponseData []AdditionalResult `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"`
ResponseData []AdditionalRes `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"`
}
// BatchReq ...
type BatchReq struct {
ClientVersion string `json:"client_version"`
Os string `json:"os"`
@@ -30,17 +34,20 @@ type BatchReq struct {
CommandNum string `json:"commandNum"`
}
type BatchResult struct {
// BatchRes ...
type BatchRes struct {
Size int `json:"size"`
URL string `json:"url"`
}
// BatchResp ...
type BatchResp struct {
ResponseData []BatchResult `json:"response_data"`
ResponseData []BatchRes `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"`
}
// UpdateReq ...
type UpdateReq struct {
Module string `json:"module"`
TargetOs string `json:"target_os"`
@@ -52,18 +59,21 @@ type UpdateReq struct {
ExternalVersion string `json:"external_version"`
}
type UpdateResult struct {
// UpdateRes ...
type UpdateRes struct {
Size int `json:"size"`
URL string `json:"url"`
Version string `json:"version"`
}
// UpdateResp ...
type UpdateResp struct {
ResponseData []UpdateResult `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"`
ResponseData []UpdateRes `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"`
}
// UrlReq ...
type UrlReq struct {
Module string `json:"module"`
Os string `json:"os"`
@@ -72,16 +82,19 @@ type UrlReq struct {
Action string `json:"action"`
}
type UrlResult struct {
// UrlRes ...
type UrlRes struct {
UrlList []string `json:"url_list"`
}
// UrlResp ...
type UrlResp struct {
ResponseData UrlResult `json:"response_data"`
ResponseData UrlRes `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"`
}
// EventResp ...
type EventResp struct {
ResponseData []interface{} `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
+20
View File
@@ -0,0 +1,20 @@
package model
// ExchangePointList ...
type ExchangePointList struct {
Rarity int `json:"rarity"`
ExchangePoint int `json:"exchange_point"`
}
// ExchangePointRes ...
type ExchangePointRes struct {
ExchangePointList []ExchangePointList `json:"exchange_point_list"`
}
// ExchangePointResp ...
type ExchangePointResp struct {
Result ExchangePointRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
+13 -1
View File
@@ -1,11 +1,13 @@
package model
// LbDayItem ...
type LbDayItem struct {
ItemID int `json:"item_id"`
AddType int `json:"add_type"`
Amount int `json:"amount"`
}
// LbDays ...
type LbDays struct {
Day int `json:"day"`
DayOfTheWeek int `json:"day_of_the_week"`
@@ -16,34 +18,42 @@ type LbDays struct {
Item LbDayItem `json:"item"`
}
// LbMonth ...
type LbMonth struct {
Year int `json:"year"`
Month int `json:"month"`
Days []LbDays `json:"days"`
}
// CalendarInfo ...
type CalendarInfo struct {
CurrentDate string `json:"current_date"`
CurrentMonth LbMonth `json:"current_month"`
NextMonth LbMonth `json:"next_month"`
}
// Reward ...
type Reward struct {
ItemID int `json:"item_id"`
AddType int `json:"add_type"`
Amount int `json:"amount"`
}
// TotalLoginInfo ...
type TotalLoginInfo struct {
LoginCount int `json:"login_count"`
RemainingCount int `json:"remaining_count"`
Reward []Reward `json:"reward"`
}
// LbRankInfo ...
type LbRankInfo struct {
BeforeClassRankID int `json:"before_class_rank_id"`
AfterClassRankID int `json:"after_class_rank_id"`
RankUpDate string `json:"rank_up_date"`
}
// LbClassSystem ...
type LbClassSystem struct {
RankInfo LbRankInfo `json:"rank_info"`
CompleteFlag bool `json:"complete_flag"`
@@ -51,6 +61,7 @@ type LbClassSystem struct {
IsVisible bool `json:"is_visible"`
}
// LbRes ...
type LbRes struct {
Sheets []interface{} `json:"sheets"`
CalendarInfo CalendarInfo `json:"calendar_info"`
@@ -60,11 +71,12 @@ type LbRes struct {
StartDashSheets []interface{} `json:"start_dash_sheets"`
EffortPoint []EffortPoint `json:"effort_point"`
LimitedEffortBox []interface{} `json:"limited_effort_box"`
MuseumInfo MuseumInfo `json:"museum_info"`
MuseumInfo Museum `json:"museum_info"`
ServerTimestamp int64 `json:"server_timestamp"`
PresentCnt int `json:"present_cnt"`
}
// LbResp ...
type LbResp struct {
ResponseData LbRes `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
+125 -52
View File
@@ -1,6 +1,13 @@
package model
// module: live, action: liveStatus
// GameOverResp ...
type GameOverResp struct {
ResponseData []interface{} `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"`
}
// NormalLiveStatusList ...
type NormalLiveStatusList struct {
LiveDifficultyID int `json:"live_difficulty_id"`
Status int `json:"status"`
@@ -10,6 +17,7 @@ type NormalLiveStatusList struct {
AchievedGoalIDList []int `json:"achieved_goal_id_list"`
}
// SpecialLiveStatusList ...
type SpecialLiveStatusList struct {
LiveDifficultyID int `json:"live_difficulty_id"`
Status int `json:"status"`
@@ -19,6 +27,7 @@ type SpecialLiveStatusList struct {
AchievedGoalIDList []int `json:"achieved_goal_id_list"`
}
// TrainingLiveStatusList ...
type TrainingLiveStatusList struct {
LiveDifficultyID int `json:"live_difficulty_id"`
Status int `json:"status"`
@@ -28,7 +37,8 @@ type TrainingLiveStatusList struct {
AchievedGoalIDList []int `json:"achieved_goal_id_list"`
}
type LiveStatusResult struct {
// LiveStatusRes ...
type LiveStatusRes struct {
NormalLiveStatusList []NormalLiveStatusList `json:"normal_live_status_list"`
SpecialLiveStatusList []SpecialLiveStatusList `json:"special_live_status_list"`
TrainingLiveStatusList []TrainingLiveStatusList `json:"training_live_status_list"`
@@ -37,14 +47,15 @@ type LiveStatusResult struct {
CanResumeLive bool `json:"can_resume_live"`
}
// LiveStatusResp ...
type LiveStatusResp struct {
Result LiveStatusResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
Result LiveStatusRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// module: live, action: schedule
// LiveList ...
type LiveList struct {
LiveDifficultyID int `json:"live_difficulty_id"`
StartDate string `json:"start_date"`
@@ -52,6 +63,7 @@ type LiveList struct {
IsRandom bool `json:"is_random"`
}
// LimitedBonusCommonList ...
type LimitedBonusCommonList struct {
LiveType int `json:"live_type"`
LimitedBonusType int `json:"limited_bonus_type"`
@@ -60,19 +72,22 @@ type LimitedBonusCommonList struct {
EndDate string `json:"end_date"`
}
// RandomLiveList ...
type RandomLiveList struct {
AttributeID int `json:"attribute_id"`
StartDate string `json:"start_date"`
EndDate string `json:"end_date"`
}
// TrainingLiveList ...
type TrainingLiveList struct {
LiveDifficultyID int `json:"live_difficulty_id"`
StartDate string `json:"start_date"`
IsRandom bool `json:"is_random"`
}
type LiveScheduleResult struct {
// LiveScheduleRes ...
type LiveScheduleRes struct {
EventList []interface{} `json:"event_list"`
LiveList []LiveList `json:"live_list"`
LimitedBonusList []interface{} `json:"limited_bonus_list"`
@@ -82,14 +97,15 @@ type LiveScheduleResult struct {
TrainingLiveList []TrainingLiveList `json:"training_live_list"`
}
// LiveScheduleResp ...
type LiveScheduleResp struct {
Result LiveScheduleResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
Result LiveScheduleRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// Play
// PlayReq ...
type PlayReq struct {
Module string `json:"module"`
PartyUserID int64 `json:"party_user_id"`
@@ -103,12 +119,14 @@ type PlayReq struct {
CommandNum string `json:"commandNum"`
}
// RankInfo ...
type RankInfo struct {
Rank int `json:"rank"`
RankMin int `json:"rank_min"`
RankMax int `json:"rank_max"`
}
// NotesList ...
type NotesList struct {
TimingSec float64 `json:"timing_sec"`
NotesAttribute int `json:"notes_attribute"`
@@ -118,6 +136,7 @@ type NotesList struct {
Position int `json:"position"`
}
// LiveInfo ...
type LiveInfo struct {
LiveDifficultyID int `json:"live_difficulty_id"`
IsRandom bool `json:"is_random"`
@@ -126,19 +145,22 @@ type LiveInfo struct {
NotesList []NotesList `json:"notes_list"`
}
// PlayCostume ...
type PlayCostume struct {
UnitID int `json:"unit_id"`
IsRankMax bool `json:"is_rank_max"`
IsSigned bool `json:"is_signed"`
}
// UnitList ...
type UnitList struct {
Smile int `json:"smile"`
Cute int `json:"cute"`
Cool int `json:"cool"`
// Costume PlayCostume `json:"costume,omitempty"`
Smile int `json:"smile"`
Cute int `json:"cute"`
Cool int `json:"cool"`
Costume PlayCostume `json:"costume,omitempty"`
}
// DeckInfo ...
type DeckInfo struct {
UnitDeckID int `json:"unit_deck_id"`
TotalSmile int `json:"total_smile"`
@@ -149,12 +171,14 @@ type DeckInfo struct {
UnitList []UnitList `json:"unit_list"`
}
// PlayLiveList ...
type PlayLiveList struct {
LiveInfo LiveInfo `json:"live_info"`
DeckInfo DeckInfo `json:"deck_info"`
}
type PlayResponseData struct {
// PlayRes ...
type PlayRes struct {
RankInfo []RankInfo `json:"rank_info"`
EnergyFullTime string `json:"energy_full_time"`
OverMaxEnergy int `json:"over_max_energy"`
@@ -167,7 +191,14 @@ type PlayResponseData struct {
ServerTimestamp int64 `json:"server_timestamp"`
}
// preciseScore
// PlayResp ...
type PlayResp struct {
ResponseData PlayRes `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"`
}
// PlayScoreReq ...
type PlayScoreReq struct {
Module string `json:"module"`
Action string `json:"action"`
@@ -177,6 +208,7 @@ type PlayScoreReq struct {
CommandNum string `json:"commandNum"`
}
// On ...
type On struct {
HasRecord bool `json:"has_record"`
LiveInfo LiveInfo `json:"live_info"`
@@ -189,6 +221,7 @@ type On struct {
CanReplay bool `json:"can_replay"`
}
// Off ...
type Off struct {
HasRecord bool `json:"has_record"`
LiveInfo LiveInfo `json:"live_info"`
@@ -201,7 +234,8 @@ type Off struct {
CanReplay bool `json:"can_replay"`
}
type PlayScoreResponseData struct {
// PlayScoreRes ...
type PlayScoreRes struct {
On On `json:"on"`
Off Off `json:"off"`
RankInfo []RankInfo `json:"rank_info"`
@@ -209,7 +243,14 @@ type PlayScoreResponseData struct {
ServerTimestamp int `json:"server_timestamp"`
}
// reward
// PlayScoreResp ...
type PlayScoreResp struct {
ResponseData PlayScoreRes `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"`
}
// PlayRewardReq ...
type PlayRewardReq struct {
Module string `json:"module"`
Action string `json:"action"`
@@ -234,12 +275,14 @@ type PlayRewardReq struct {
ScoreCool int `json:"score_cool"`
}
// Icon ...
type Icon struct {
SlideID int `json:"slide_id"`
JustID int `json:"just_id"`
NormalID int `json:"normal_id"`
}
// LiveSetting ...
type LiveSetting struct {
StringSize int `json:"string_size"`
PreciseScoreAutoUpdateFlag bool `json:"precise_score_auto_update_flag"`
@@ -253,6 +296,7 @@ type LiveSetting struct {
CutinType int `json:"cutin_type"`
}
// PreciseList ...
type PreciseList struct {
Effect int `json:"effect"`
Count int `json:"count"`
@@ -263,16 +307,20 @@ type PreciseList struct {
IsSame bool `json:"is_same"`
}
// BackgroundScore ...
type BackgroundScore struct {
Smile int `json:"smile"`
Cute int `json:"cute"`
Cool int `json:"cool"`
}
// TriggerLog ...
type TriggerLog struct {
ActivationRate int `json:"activation_rate"`
Position int `json:"position"`
}
// PreciseScoreLog ...
type PreciseScoreLog struct {
LiveSetting LiveSetting `json:"live_setting"`
TapAdjust int `json:"tap_adjust"`
@@ -285,6 +333,7 @@ type PreciseScoreLog struct {
RandomSeed int `json:"random_seed"`
}
// RewardLiveInfo ...
type RewardLiveInfo struct {
LiveDifficultyID int `json:"live_difficulty_id"`
IsRandom bool `json:"is_random"`
@@ -292,21 +341,25 @@ type RewardLiveInfo struct {
SwingFlag int `json:"swing_flag"`
}
// PlayerExpUnitMax ...
type PlayerExpUnitMax struct {
Before int `json:"before"`
After int `json:"after"`
}
// PlayerExpFriendMax ...
type PlayerExpFriendMax struct {
Before int `json:"before"`
After int `json:"after"`
}
// PlayerExpLpMax ...
type PlayerExpLpMax struct {
Before int `json:"before"`
After int `json:"after"`
}
// BaseRewardInfo ...
type BaseRewardInfo struct {
PlayerExp int `json:"player_exp"`
PlayerExpUnitMax PlayerExpUnitMax `json:"player_exp_unit_max"`
@@ -317,6 +370,7 @@ type BaseRewardInfo struct {
SocialPoint int `json:"social_point"`
}
// LiveClear ...
type LiveClear struct {
AddType int `json:"add_type"`
Amount int `json:"amount"`
@@ -345,6 +399,7 @@ type LiveClear struct {
RemovableSkillIds []interface{} `json:"removable_skill_ids"`
}
// LiveRank ...
type LiveRank struct {
AddType int `json:"add_type"`
Amount int `json:"amount"`
@@ -373,12 +428,14 @@ type LiveRank struct {
RemovableSkillIds []interface{} `json:"removable_skill_ids"`
}
// RewardUnitList ...
type RewardUnitList struct {
LiveClear []LiveClear `json:"live_clear"`
LiveRank []LiveRank `json:"live_rank"`
LiveCombo []interface{} `json:"live_combo"`
}
// Rewards ...
type Rewards struct {
Rarity int `json:"rarity"`
ItemID int `json:"item_id"`
@@ -389,6 +446,7 @@ type Rewards struct {
InsertDate string `json:"insert_date"`
}
// EffortPoint ...
type EffortPoint struct {
LiveEffortPointBoxSpecID int `json:"live_effort_point_box_spec_id"`
Capacity int `json:"capacity"`
@@ -397,24 +455,7 @@ type EffortPoint struct {
Rewards []Rewards `json:"rewards"`
}
// type PlayRewardUnitList struct {
// UnitOwningUserID int `json:"unit_owning_user_id"`
// UnitID int `json:"unit_id"`
// Position int `json:"position"`
// Level int `json:"level"`
// LevelLimitID int `json:"level_limit_id"`
// DisplayRank int `json:"display_rank"`
// Love int `json:"love"`
// UnitSkillLevel int `json:"unit_skill_level"`
// IsRankMax bool `json:"is_rank_max"`
// IsLoveMax bool `json:"is_love_max"`
// IsLevelMax bool `json:"is_level_max"`
// IsSigned bool `json:"is_signed"`
// BeforeLove int `json:"before_love"`
// MaxLove int `json:"max_love"`
// // Costume Costume `json:"costume,omitempty"`
// }
// PlayRewardUnitList ...
type PlayRewardUnitList struct {
ID int `xorm:"id pk autoincr" json:"-"`
UserDeckID int `xorm:"user_deck_id" json:"-"`
@@ -435,6 +476,7 @@ type PlayRewardUnitList struct {
InsertData int64 `xorm:"insert_date" json:"-"`
}
// BeforeUserInfo ...
type BeforeUserInfo struct {
Level int `json:"level"`
Exp int `json:"exp"`
@@ -460,6 +502,7 @@ type BeforeUserInfo struct {
UnlockRandomLiveAqours int `json:"unlock_random_live_aqours"`
}
// AfterUserInfo ...
type AfterUserInfo struct {
Level int `json:"level"`
Exp int `json:"exp"`
@@ -485,22 +528,26 @@ type AfterUserInfo struct {
UnlockRandomLiveAqours int `json:"unlock_random_live_aqours"`
}
// NextLevelInfo ...
type NextLevelInfo struct {
Level int `json:"level"`
FromExp int `json:"from_exp"`
}
// GoalAccompInfo ...
type GoalAccompInfo struct {
AchievedIds []interface{} `json:"achieved_ids"`
Rewards []interface{} `json:"rewards"`
}
// RewardRankInfo ...
type RewardRankInfo struct {
BeforeClassRankID int `json:"before_class_rank_id"`
AfterClassRankID int `json:"after_class_rank_id"`
RankUpDate string `json:"rank_up_date"`
}
// ClassSystem ...
type ClassSystem struct {
RankInfo RewardRankInfo `json:"rank_info"`
CompleteFlag bool `json:"complete_flag"`
@@ -508,6 +555,7 @@ type ClassSystem struct {
IsVisible bool `json:"is_visible"`
}
// PlayRewardList ...
type PlayRewardList struct {
ItemID int `json:"item_id"`
AddType int `json:"add_type"`
@@ -516,6 +564,7 @@ type PlayRewardList struct {
RewardBoxFlag bool `json:"reward_box_flag"`
}
// AccomplishedAchievementList ...
type AccomplishedAchievementList struct {
AchievementID int `json:"achievement_id"`
Count int `json:"count"`
@@ -531,23 +580,14 @@ type AccomplishedAchievementList struct {
RewardList []PlayRewardList `json:"reward_list"`
}
type Parameter struct {
Smile int `json:"smile"`
Pure int `json:"pure"`
Cool int `json:"cool"`
}
type RewardMuseumInfo struct {
Parameter Parameter `json:"parameter"`
ContentsIDList []int `json:"contents_id_list"`
}
// RewardUnitSupportList ...
type RewardUnitSupportList struct {
UnitID int `json:"unit_id"`
Amount int `json:"amount"`
}
type RewardResponseData struct {
// RewardRes ...
type RewardRes struct {
LiveInfo []RewardLiveInfo `json:"live_info"`
Rank int `json:"rank"`
ComboRank int `json:"combo_rank"`
@@ -575,8 +615,41 @@ type RewardResponseData struct {
AccomplishedAchievementList []AccomplishedAchievementList `json:"accomplished_achievement_list"`
UnaccomplishedAchievementCnt int `json:"unaccomplished_achievement_cnt"`
AddedAchievementList []interface{} `json:"added_achievement_list"`
MuseumInfo RewardMuseumInfo `json:"museum_info"`
MuseumInfo Museum `json:"museum_info"`
UnitSupportList []RewardUnitSupportList `json:"unit_support_list"`
ServerTimestamp int `json:"server_timestamp"`
PresentCnt int `json:"present_cnt"`
}
// RewardResp ...
type RewardResp struct {
ResponseData RewardRes `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"`
}
// LiveSeInfoRes ...
type LiveSeInfoRes struct {
LiveSeList []int `json:"live_se_list"`
}
// LiveSeInfoResp ...
type LiveSeInfoResp struct {
Result LiveSeInfoRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// LiveIconInfoRes ...
type LiveIconInfoRes struct {
LiveNotesIconList []int `json:"live_notes_icon_list"`
}
// LiveIconInfoResp ...
type LiveIconInfoResp struct {
Result LiveIconInfoRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
+9
View File
@@ -0,0 +1,9 @@
package model
// MarathonInfoResp ...
type MarathonInfoResp struct {
Result []interface{} `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
+9 -6
View File
@@ -1,12 +1,13 @@
package model
// module: multiunit, action: multiunitscenarioStatus
// MultiUnitScenarioChapterList ...
type MultiUnitScenarioChapterList struct {
MultiUnitScenarioID int `json:"multi_unit_scenario_id"`
Chapter int `json:"chapter"`
Status int `json:"status"`
}
// MultiUnitScenarioStatusList ...
type MultiUnitScenarioStatusList struct {
MultiUnitID int `json:"multi_unit_id"`
Status int `json:"status"`
@@ -15,14 +16,16 @@ type MultiUnitScenarioStatusList struct {
ChapterList []MultiUnitScenarioChapterList `json:"chapter_list"`
}
type MultiUnitScenarioStatusResult struct {
// MultiUnitScenarioStatusRes ...
type MultiUnitScenarioStatusRes struct {
MultiUnitScenarioStatusList []MultiUnitScenarioStatusList `json:"multi_unit_scenario_status_list"`
UnlockedMultiUnitScenarioIds []interface{} `json:"unlocked_multi_unit_scenario_ids"`
}
// MultiUnitScenarioStatusResp ...
type MultiUnitScenarioStatusResp struct {
Result MultiUnitScenarioStatusResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
Result MultiUnitScenarioStatusRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
+17
View File
@@ -1,23 +1,40 @@
package model
// MuseumResp ...
type MuseumResp struct {
ResponseData MuseumRes `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"`
}
// MuseumParameter ...
type MuseumParameter struct {
Smile int `json:"smile"`
Pure int `json:"pure"`
Cool int `json:"cool"`
}
// Museum ...
type Museum struct {
Parameter MuseumParameter `json:"parameter"`
ContentsIDList []int `json:"contents_id_list"`
}
// MuseumRes ...
type MuseumRes struct {
MuseumInfo Museum `json:"museum_info"`
ServerTimestamp int64 `json:"server_timestamp"`
}
// MuseumInfoRes ...
type MuseumInfoRes struct {
MuseumInfo Museum `json:"museum_info"`
}
// MuseumInfoResp ...
type MuseumInfoResp struct {
Result MuseumInfoRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
+14
View File
@@ -0,0 +1,14 @@
package model
// SpecialCutinRes ...
type SpecialCutinRes struct {
SpecialCutinList []interface{} `json:"special_cutin_list"`
}
// SpecialCutinResp ...
type SpecialCutinResp struct {
Result SpecialCutinRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
+14
View File
@@ -42,3 +42,17 @@ type NoticeUserGreetingRes struct {
NoticeList []interface{} `json:"notice_list"`
ServerTimestamp int64 `json:"server_timestamp"`
}
// NoticeMarqueeRes ...
type NoticeMarqueeRes struct {
ItemCount int `json:"item_count"`
MarqueeList []interface{} `json:"marquee_list"`
}
// NoticeMarqueeResp ...
type NoticeMarqueeResp struct {
Result NoticeMarqueeRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
-172
View File
@@ -1,172 +0,0 @@
package model
// module: notice, action: noticeMarquee
type NoticeMarqueeResult struct {
ItemCount int `json:"item_count"`
MarqueeList []interface{} `json:"marquee_list"`
}
type NoticeMarqueeResp struct {
Result NoticeMarqueeResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// module: user, action: getNavi
type User struct {
UserID int `json:"user_id"`
UnitOwningUserID int `json:"unit_owning_user_id"`
}
type UserNaviResult struct {
User User `json:"user"`
}
type UserNaviResp struct {
Result UserNaviResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// module: navigation, action: specialCutin
type SpecialCutinResult struct {
SpecialCutinList []interface{} `json:"special_cutin_list"`
}
type SpecialCutinResp struct {
Result SpecialCutinResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// module: award, action: awardInfo
type AwardInfo struct {
AwardID int `json:"award_id"`
IsSet bool `json:"is_set"`
InsertDate string `json:"insert_date"`
}
type AwardInfoResult struct {
AwardInfo []AwardInfo `json:"award_info"`
}
type AwardInfoResp struct {
Result AwardInfoResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// module: background, action: backgroundInfo
type BackgroundInfo struct {
BackgroundID int `json:"background_id"`
IsSet bool `json:"is_set"`
InsertDate string `json:"insert_date"`
}
type BackgroundInfoResult struct {
BackgroundInfo []BackgroundInfo `json:"background_info"`
}
type BackgroundInfoResp struct {
Result BackgroundInfoResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// module: exchange, action: owningPoint
type ExchangePointList struct {
Rarity int `json:"rarity"`
ExchangePoint int `json:"exchange_point"`
}
type ExchangePointResult struct {
ExchangePointList []ExchangePointList `json:"exchange_point_list"`
}
type ExchangePointResp struct {
Result ExchangePointResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// module: livese, action: liveseInfo
type LiveSeInfoResult struct {
LiveSeList []int `json:"live_se_list"`
}
type LiveSeInfoResp struct {
Result LiveSeInfoResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// module: liveicon, action: liveiconInfo
type LiveIconInfoResult struct {
LiveNotesIconList []int `json:"live_notes_icon_list"`
}
type LiveIconInfoResp struct {
Result LiveIconInfoResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// module: item, action: list
type GeneralItemList struct {
ItemID int `json:"item_id"`
Amount int `json:"amount"`
UseButtonFlag bool `json:"use_button_flag"`
GeneralItemType int `json:"general_item_type"`
}
type BuffItemList struct {
ItemID int `json:"item_id"`
Amount int `json:"amount"`
BuffType int `json:"buff_type"`
}
type ReinforceItemList struct {
ItemID int `json:"item_id"`
ReinforceType int `json:"reinforce_type"`
AdditionValue int `json:"addition_value"`
Amount int `json:"amount"`
EventID int `json:"event_id"`
}
type ItemResult struct {
GeneralItemList []GeneralItemList `json:"general_item_list"`
BuffItemList []BuffItemList `json:"buff_item_list"`
ReinforceItemList []ReinforceItemList `json:"reinforce_item_list"`
ReinforceInfo interface{} `json:"reinforce_info"`
}
type ItemResp struct {
Result ItemResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// module: marathon, action: marathonInfo
type MarathonInfoResp struct {
Result []interface{} `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// module: challenge, action: challengeInfo
type ChallengeInfoResp struct {
Result []interface{} `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
+21 -6
View File
@@ -1,10 +1,11 @@
package model
// module: payment, action: productList
// RestrictionInfo ...
type RestrictionInfo struct {
Restricted bool `json:"restricted"`
}
// UnderAgeInfo ...
type UnderAgeInfo struct {
BirthSet bool `json:"birth_set"`
HasLimit bool `json:"has_limit"`
@@ -12,6 +13,7 @@ type UnderAgeInfo struct {
MonthUsed int `json:"month_used"`
}
// SnsProductItemList ...
type SnsProductItemList struct {
ItemID int `json:"item_id"`
AddType int `json:"add_type"`
@@ -19,6 +21,7 @@ type SnsProductItemList struct {
IsFreebie bool `json:"is_freebie"`
}
// SnsProductList ...
type SnsProductList struct {
ProductID string `json:"product_id"`
Name string `json:"name"`
@@ -28,6 +31,7 @@ type SnsProductList struct {
ItemList []SnsProductItemList `json:"item_list"`
}
// ProductItemList ...
type ProductItemList struct {
ItemID int `json:"item_id"`
AddType int `json:"add_type"`
@@ -36,12 +40,14 @@ type ProductItemList struct {
IsRankMax bool `json:"is_rank_max,omitempty"`
}
// LimitStatus ...
type LimitStatus struct {
TermStartDate string `json:"term_start_date"`
RemainingTime string `json:"remaining_time"`
RemainingCount int `json:"remaining_count"`
}
// ProductList ...
type ProductList struct {
ProductID string `json:"product_id"`
Name string `json:"name"`
@@ -55,6 +61,7 @@ type ProductList struct {
LimitStatus LimitStatus `json:"limit_status"`
}
// SubscriptionItemList ...
type SubscriptionItemList struct {
ItemID int `json:"item_id"`
AddType int `json:"add_type"`
@@ -62,26 +69,31 @@ type SubscriptionItemList struct {
IsFreebie bool `json:"is_freebie"`
}
// RewardList ...
type RewardList struct {
ItemID int `json:"item_id"`
AddType int `json:"add_type"`
Amount int `json:"amount"`
}
// Items ...
type Items struct {
Seq int `json:"seq"`
RewardList []RewardList `json:"reward_list"`
}
// LicenseInfo ...
type LicenseInfo struct {
Name string `json:"name"`
Items []Items `json:"items"`
}
// UserStatus ...
type UserStatus struct {
IsLicensed bool `json:"is_licensed"`
}
// SubscriptionStatus ...
type SubscriptionStatus struct {
LicenseID int `json:"license_id"`
LicenseType int `json:"license_type"`
@@ -91,6 +103,7 @@ type SubscriptionStatus struct {
BadgeFlag bool `json:"badge_flag"`
}
// SubscriptionList ...
type SubscriptionList struct {
ProductID string `json:"product_id"`
Name string `json:"name"`
@@ -104,7 +117,8 @@ type SubscriptionList struct {
SubscriptionStatus SubscriptionStatus `json:"subscription_status"`
}
type ProductListResult struct {
// ProductListRes ...
type ProductListRes struct {
RestrictionInfo RestrictionInfo `json:"restriction_info"`
UnderAgeInfo UnderAgeInfo `json:"under_age_info"`
SnsProductList []SnsProductList `json:"sns_product_list"`
@@ -113,9 +127,10 @@ type ProductListResult struct {
ShowPointShop bool `json:"show_point_shop"`
}
// ProductListResp ...
type ProductListResp struct {
Result ProductListResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
Result ProductListRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
-10
View File
@@ -1,10 +0,0 @@
package model
import "encoding/json"
// response_data
type Response struct {
ResponseData json.RawMessage `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"`
}
+25 -18
View File
@@ -1,41 +1,45 @@
package model
// module: scenario, action: scenarioStatus
// ScenarioStatusList ...
type ScenarioStatusList struct {
ScenarioID int `json:"scenario_id"`
Status int `json:"status"`
}
type ScenarioStatusResult struct {
// ScenarioStatusRes ...
type ScenarioStatusRes struct {
ScenarioStatusList []ScenarioStatusList `json:"scenario_status_list"`
}
// ScenarioStatusResp ...
type ScenarioStatusResp struct {
Result ScenarioStatusResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
Result ScenarioStatusRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// module: subscenario, action: subscenarioStatus
// SubscenarioStatusList ...
type SubscenarioStatusList struct {
SubscenarioID int `json:"subscenario_id"`
Status int `json:"status"`
}
type SubscenarioStatusResult struct {
// SubscenarioStatusRes ...
type SubscenarioStatusRes struct {
SubscenarioStatusList []SubscenarioStatusList `json:"subscenario_status_list"`
UnlockedSubscenarioIds []interface{} `json:"unlocked_subscenario_ids"`
}
// SubscenarioStatusResp ...
type SubscenarioStatusResp struct {
Result SubscenarioStatusResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
Result SubscenarioStatusRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// module: eventscenario, action: status
// EventScenarioChapterList ...
type EventScenarioChapterList struct {
EventScenarioID int `json:"event_scenario_id"`
Chapter int `json:"chapter"`
@@ -48,6 +52,7 @@ type EventScenarioChapterList struct {
Amount int `json:"amount"`
}
// EventScenarioList ...
type EventScenarioList struct {
EventID int `json:"event_id"`
EventScenarioBtnAsset string `json:"event_scenario_btn_asset"`
@@ -55,13 +60,15 @@ type EventScenarioList struct {
ChapterList []EventScenarioChapterList `json:"chapter_list"`
}
type EventScenarioStatusResult struct {
// EventScenarioStatusRes ...
type EventScenarioStatusRes struct {
EventScenarioList []EventScenarioList `json:"event_scenario_list"`
}
// EventScenarioStatusResp ...
type EventScenarioStatusResp struct {
Result EventScenarioStatusResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
Result EventScenarioStatusRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
-23
View File
@@ -1,23 +0,0 @@
package model
// module: stamp, action: stampInfo
type StampList struct {
Position int `json:"position"`
StampID int `json:"stamp_id"`
}
type SettingList struct {
StampSettingID int `json:"stamp_setting_id"`
MainFlag int `json:"main_flag"`
StampList []StampList `json:"stamp_list"`
}
type StampSetting struct {
StampType int `json:"stamp_type"`
SettingList []SettingList `json:"setting_list"`
}
type StampInfoResult struct {
OwningStampIds []int `json:"owning_stamp_ids"`
StampSetting []StampSetting `json:"stamp_setting"`
}
+16 -10
View File
@@ -1,5 +1,6 @@
package model
// TopInfoLicenseInfo ...
type TopInfoLicenseInfo struct {
LicenseList []interface{} `json:"license_list"`
LicensedInfo []interface{} `json:"licensed_info"`
@@ -7,7 +8,8 @@ type TopInfoLicenseInfo struct {
BadgeFlag bool `json:"badge_flag"`
}
type TopInfoResult struct {
// TopInfoRes ...
type TopInfoRes struct {
FriendActionCnt int `json:"friend_action_cnt"`
FriendGreetCnt int `json:"friend_greet_cnt"`
FriendVarietyCnt int `json:"friend_variety_cnt"`
@@ -31,13 +33,15 @@ type TopInfoResult struct {
HasAdReward bool `json:"has_ad_reward"`
}
// TopInfoResp ...
type TopInfoResp struct {
Result TopInfoResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
Result TopInfoRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// TopInfoOnceNotification ...
type TopInfoOnceNotification struct {
Push bool `json:"push"`
Lp bool `json:"lp"`
@@ -50,7 +54,8 @@ type TopInfoOnceNotification struct {
Birthday bool `json:"birthday"`
}
type TopInfoOnceResult struct {
// TopInfoOnceRes ...
type TopInfoOnceRes struct {
NewAchievementCnt int `json:"new_achievement_cnt"`
UnaccomplishedAchievementCnt int `json:"unaccomplished_achievement_cnt"`
LiveDailyRewardExist bool `json:"live_daily_reward_exist"`
@@ -64,9 +69,10 @@ type TopInfoOnceResult struct {
OpenV98 bool `json:"open_v98"`
}
// TopInfoOnceResp ...
type TopInfoOnceResp struct {
Result TopInfoOnceResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
Result TopInfoOnceRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
+60 -34
View File
@@ -126,13 +126,28 @@ type SkillEquipResp struct {
StatusCode int `json:"status_code"`
}
// module: unit, action: unitAll
// SetDisplayRankResp ...
type SetDisplayRankResp struct {
ResponseData []interface{} `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"`
}
// SetDeckResp ...
type SetDeckResp struct {
ResponseData []interface{} `json:"response_data"`
ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"`
}
// Costume ...
type Costume struct {
UnitID int `json:"unit_id"`
IsRankMax bool `json:"is_rank_max"`
IsSigned bool `json:"is_signed"`
}
// Active ...
type Active struct {
UnitOwningUserID int `xorm:"unit_owning_user_id pk autoincr" json:"unit_owning_user_id"`
UserID int `xorm:"user_id" json:"-"`
@@ -162,6 +177,7 @@ type Active struct {
// Costume Costume `json:"costume,omitempty"`
}
// Waiting ...
type Waiting struct {
UnitOwningUserID int64 `json:"unit_owning_user_id"`
UnitID int `json:"unit_id"`
@@ -189,56 +205,62 @@ type Waiting struct {
InsertDate string `json:"insert_date"`
}
type UnitAllResult struct {
// UnitAllRes ...
type UnitAllRes struct {
Active []Active `json:"active"`
Waiting []Waiting `json:"waiting"`
}
// UnitAllResp ...
type UnitAllResp struct {
Result UnitAllResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
Result UnitAllRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// module: unit, action: deckInfo
// UnitOwningUserIds ...
type UnitOwningUserIds struct {
Position int `json:"position"`
UnitOwningUserID int `json:"unit_owning_user_id"`
}
type UnitDeckInfo struct {
// UnitDeckInfoRes ...
type UnitDeckInfoRes struct {
UnitDeckID int `json:"unit_deck_id"`
MainFlag bool `json:"main_flag"`
DeckName string `json:"deck_name"`
UnitOwningUserIds []UnitOwningUserIds `json:"unit_owning_user_ids"`
}
// UnitDeckInfoResp ...
type UnitDeckInfoResp struct {
Result []UnitDeckInfo `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// module: unit, action: supporterAll
type UnitSupportList struct {
UnitID int `json:"unit_id"`
Amount int `json:"amount"`
}
type UnitSupportResult struct {
UnitSupportList []UnitSupportList `json:"unit_support_list"`
}
type UnitSupportResp struct {
Result UnitSupportResult `json:"result"`
Result []UnitDeckInfoRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// module: unit, action: removableSkillInfo
// UnitSupportList ...
type UnitSupportList struct {
UnitID int `json:"unit_id"`
Amount int `json:"amount"`
}
// UnitSupportRes ...
type UnitSupportRes struct {
UnitSupportList []UnitSupportList `json:"unit_support_list"`
}
// UnitSupportResp ...
type UnitSupportResp struct {
Result UnitSupportRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// OwningInfo ...
type OwningInfo struct {
UnitRemovableSkillID int `json:"unit_removable_skill_id"`
TotalAmount int `json:"total_amount"`
@@ -246,19 +268,21 @@ type OwningInfo struct {
InsertDate string `json:"insert_date"`
}
type RemovableSkillResult struct {
// RemovableSkillRes ...
type RemovableSkillRes struct {
OwningInfo []OwningInfo `json:"owning_info"`
EquipmentInfo map[int]interface{} `json:"equipment_info"`
}
// RemovableSkillResp ...
type RemovableSkillResp struct {
Result RemovableSkillResult `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
Result RemovableSkillRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}
// module: unit, action: deck
// UnitDeckReq ...
type UnitDeckReq struct {
Module string `json:"module"`
UnitDeckList []UnitDeckList `json:"unit_deck_list"`
@@ -266,11 +290,13 @@ type UnitDeckReq struct {
Mgd int `json:"mgd"`
}
// UnitDeckDetail ...
type UnitDeckDetail struct {
Position int `json:"position"`
UnitOwningUserID int `json:"unit_owning_user_id"`
}
// UnitDeckList ...
type UnitDeckList struct {
UnitDeckDetail []UnitDeckDetail `json:"unit_deck_detail"`
UnitDeckID int `json:"unit_deck_id"`
@@ -278,7 +304,7 @@ type UnitDeckList struct {
DeckName string `json:"deck_name"`
}
// module: unit, action: deckName
// DeckNameReq ...
type DeckNameReq struct {
Module string `json:"module"`
UnitDeckID int `json:"unit_deck_id"`
+19
View File
@@ -20,3 +20,22 @@ type UserNameChangeRes struct {
AfterName string `json:"after_name"`
ServerTimestamp int64 `json:"server_timestamp"`
}
// User ...
type User struct {
UserID int `json:"user_id"`
UnitOwningUserID int `json:"unit_owning_user_id"`
}
// UserNaviRes ...
type UserNaviRes struct {
User User `json:"user"`
}
// UserNaviResp ...
type UserNaviResp struct {
Result UserNaviRes `json:"result"`
Status int `json:"status"`
CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"`
}