diff --git a/handler/album.go b/handler/album.go index 943c0bf..b5a62bb 100644 --- a/handler/album.go +++ b/handler/album.go @@ -75,7 +75,7 @@ func AlbumSeriesAll(ctx *gin.Context) { albumResp := model.AlbumSeriesResp{ ResponseData: albumSeriesAllRes, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(albumResp) diff --git a/handler/allstars.go b/handler/allstars.go index dcc4f3f..8b72526 100644 --- a/handler/allstars.go +++ b/handler/allstars.go @@ -86,13 +86,13 @@ func AsGetPackUrl(ctx *gin.Context) { } // fmt.Println(req) - packBody, ok := req[0].(map[string]interface{}) + packBody, ok := req[0].(map[string]any) if !ok { panic("Assertion failed!") } // fmt.Println(packBody) - packNames, ok := packBody["pack_names"].([]interface{}) + packNames, ok := packBody["pack_names"].([]any) if !ok { panic("Assertion failed!") } @@ -210,7 +210,7 @@ func AsLiveMvSaveDeck(ctx *gin.Context) { panic(err) } - body, ok := req[0].(map[string]interface{}) + body, ok := req[0].(map[string]any) if !ok { panic("Assertion failed!") } @@ -338,65 +338,65 @@ func AsLiveMvSaveDeck(ctx *gin.Context) { UserModel: model.UserModel{ UserStatus: CommonUserStatus(), UserMemberByMemberID: userMemberByMemberID, - UserCardByCardID: []interface{}{}, - UserSuitBySuitID: []interface{}{}, - UserLiveDeckByID: []interface{}{}, - UserLivePartyByID: []interface{}{}, - UserLessonDeckByID: []interface{}{}, - UserLiveMvDeckByID: []interface{}{}, + UserCardByCardID: []any{}, + UserSuitBySuitID: []any{}, + UserLiveDeckByID: []any{}, + UserLivePartyByID: []any{}, + UserLessonDeckByID: []any{}, + UserLiveMvDeckByID: []any{}, UserLiveMvDeckCustomByID: userLiveMvDeckCustomByID, - UserLiveDifficultyByDifficultyID: []interface{}{}, - UserStoryMainByStoryMainID: []interface{}{}, - UserStoryMainSelectedByStoryMainCellID: []interface{}{}, - UserVoiceByVoiceID: []interface{}{}, - UserEmblemByEmblemID: []interface{}{}, - UserGachaTicketByTicketID: []interface{}{}, - UserGachaPointByPointID: []interface{}{}, - UserLessonEnhancingItemByItemID: []interface{}{}, - UserTrainingMaterialByItemID: []interface{}{}, - UserGradeUpItemByItemID: []interface{}{}, - UserCustomBackgroundByID: []interface{}{}, - UserStorySideByID: []interface{}{}, - UserStoryMemberByID: []interface{}{}, - UserCommunicationMemberDetailBadgeByID: []interface{}{}, - UserStoryEventHistoryByID: []interface{}{}, - UserRecoveryLpByID: []interface{}{}, - UserRecoveryApByID: []interface{}{}, - UserMissionByMissionID: []interface{}{}, - UserDailyMissionByMissionID: []interface{}{}, - UserWeeklyMissionByMissionID: []interface{}{}, - UserInfoTriggerBasicByTriggerID: []interface{}{}, - UserInfoTriggerCardGradeUpByTriggerID: []interface{}{}, - UserInfoTriggerMemberGuildSupportItemExpiredByTriggerID: []interface{}{}, - UserInfoTriggerMemberLoveLevelUpByTriggerID: []interface{}{}, - UserAccessoryByUserAccessoryID: []interface{}{}, - UserAccessoryLevelUpItemByID: []interface{}{}, - UserAccessoryRarityUpItemByID: []interface{}{}, - UserUnlockScenesByEnum: []interface{}{}, - UserSceneTipsByEnum: []interface{}{}, - UserRuleDescriptionByID: []interface{}{}, - UserExchangeEventPointByID: []interface{}{}, - UserSchoolIdolFestivalIDRewardMissionByID: []interface{}{}, - UserGpsPresentReceivedByID: []interface{}{}, - UserEventMarathonByEventMasterID: []interface{}{}, - UserEventMiningByEventMasterID: []interface{}{}, - UserEventCoopByEventMasterID: []interface{}{}, - UserLiveSkipTicketByID: []interface{}{}, - UserStoryEventUnlockItemByID: []interface{}{}, - UserEventMarathonBoosterByID: []interface{}{}, - UserReferenceBookByID: []interface{}{}, - UserReviewRequestProcessFlowByID: []interface{}{}, - UserRankExpByID: []interface{}{}, - UserShareByID: []interface{}{}, - UserTowerByTowerID: []interface{}{}, - UserRecoveryTowerCardUsedCountItemByRecoveryTowerCardUsedCountItemMasterID: []interface{}{}, - UserStoryLinkageByID: []interface{}{}, - UserSubscriptionStatusByID: []interface{}{}, - UserStoryMainPartDigestMovieByID: []interface{}{}, - UserMemberGuildByID: []interface{}{}, - UserMemberGuildSupportItemByID: []interface{}{}, - UserDailyTheaterByDailyTheaterID: []interface{}{}, - UserPlayListByID: []interface{}{}, + UserLiveDifficultyByDifficultyID: []any{}, + UserStoryMainByStoryMainID: []any{}, + UserStoryMainSelectedByStoryMainCellID: []any{}, + UserVoiceByVoiceID: []any{}, + UserEmblemByEmblemID: []any{}, + UserGachaTicketByTicketID: []any{}, + UserGachaPointByPointID: []any{}, + UserLessonEnhancingItemByItemID: []any{}, + UserTrainingMaterialByItemID: []any{}, + UserGradeUpItemByItemID: []any{}, + UserCustomBackgroundByID: []any{}, + UserStorySideByID: []any{}, + UserStoryMemberByID: []any{}, + UserCommunicationMemberDetailBadgeByID: []any{}, + UserStoryEventHistoryByID: []any{}, + UserRecoveryLpByID: []any{}, + UserRecoveryApByID: []any{}, + UserMissionByMissionID: []any{}, + UserDailyMissionByMissionID: []any{}, + UserWeeklyMissionByMissionID: []any{}, + UserInfoTriggerBasicByTriggerID: []any{}, + UserInfoTriggerCardGradeUpByTriggerID: []any{}, + UserInfoTriggerMemberGuildSupportItemExpiredByTriggerID: []any{}, + UserInfoTriggerMemberLoveLevelUpByTriggerID: []any{}, + UserAccessoryByUserAccessoryID: []any{}, + UserAccessoryLevelUpItemByID: []any{}, + UserAccessoryRarityUpItemByID: []any{}, + UserUnlockScenesByEnum: []any{}, + UserSceneTipsByEnum: []any{}, + UserRuleDescriptionByID: []any{}, + UserExchangeEventPointByID: []any{}, + UserSchoolIdolFestivalIDRewardMissionByID: []any{}, + UserGpsPresentReceivedByID: []any{}, + UserEventMarathonByEventMasterID: []any{}, + UserEventMiningByEventMasterID: []any{}, + UserEventCoopByEventMasterID: []any{}, + UserLiveSkipTicketByID: []any{}, + UserStoryEventUnlockItemByID: []any{}, + UserEventMarathonBoosterByID: []any{}, + UserReferenceBookByID: []any{}, + UserReviewRequestProcessFlowByID: []any{}, + UserRankExpByID: []any{}, + UserShareByID: []any{}, + UserTowerByTowerID: []any{}, + UserRecoveryTowerCardUsedCountItemByRecoveryTowerCardUsedCountItemMasterID: []any{}, + UserStoryLinkageByID: []any{}, + UserSubscriptionStatusByID: []any{}, + UserStoryMainPartDigestMovieByID: []any{}, + UserMemberGuildByID: []any{}, + UserMemberGuildSupportItemByID: []any{}, + UserDailyTheaterByDailyTheaterID: []any{}, + UserPlayListByID: []any{}, }, } respB, err := json.Marshal(saveResp) @@ -451,7 +451,7 @@ func AsUpdateUserCommunicationMemberDetailBadge(ctx *gin.Context) { return true }) - userDetail := []interface{}{} + userDetail := []any{} userDetail = append(userDetail, memberMasterId) userDetail = append(userDetail, model.UserCommunicationMemberDetailBadgeByID{ MemberMasterID: int(memberMasterId), @@ -807,12 +807,12 @@ func AsLiveStart(ctx *gin.Context) { panic("歌曲情报信息不存在!") } - var liveNotesRes map[string]interface{} + var liveNotesRes map[string]any if err = json.Unmarshal([]byte(liveNotes), &liveNotesRes); err != nil { panic(err) } - var partnerInfo map[string]interface{} + var partnerInfo map[string]any if err = json.Unmarshal([]byte(cardInfo), &partnerInfo); err != nil { panic(err) } @@ -948,7 +948,7 @@ func AsGetOtherUserCard(ctx *gin.Context) { return true }) - var userCardInfo map[string]interface{} + var userCardInfo map[string]any if err := json.Unmarshal([]byte(cardInfo), &userCardInfo); err != nil { panic(err) } @@ -999,7 +999,7 @@ func AsChangeIsAwakeningImage(ctx *gin.Context) { return true }) - userCardInfo := []interface{}{} + userCardInfo := []any{} userCardInfo = append(userCardInfo, cardInfo.CardMasterID) userCardInfo = append(userCardInfo, cardInfo) diff --git a/handler/announce.go b/handler/announce.go index cbb8d90..54b43c1 100644 --- a/handler/announce.go +++ b/handler/announce.go @@ -26,7 +26,7 @@ func AnnounceCheckState(ctx *gin.Context) { HasUnreadAnnounce: false, ServerTimestamp: time.Now().Unix(), }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(announceResp) diff --git a/handler/api.go b/handler/api.go index 62cffc8..c3a0ae3 100644 --- a/handler/api.go +++ b/handler/api.go @@ -45,7 +45,7 @@ func Api(ctx *gin.Context) { fmt.Println(err) return } - results := []interface{}{} + results := []any{} for _, v := range apiReq { var res []byte var err error @@ -72,12 +72,12 @@ func Api(ctx *gin.Context) { FriendsRequestCnt: 0, IsTodayBirthday: false, LicenseInfo: model.TopInfoLicenseInfo{ - LicenseList: []interface{}{}, - LicensedInfo: []interface{}{}, - ExpiredInfo: []interface{}{}, + LicenseList: []any{}, + LicensedInfo: []any{}, + ExpiredInfo: []any{}, BadgeFlag: false, }, - UsingBuffInfo: []interface{}{}, + UsingBuffInfo: []any{}, IsKlabIDTaskFlag: false, KlabIDTaskCanSync: false, HasUnreadAnnounce: false, @@ -163,8 +163,8 @@ func Api(ctx *gin.Context) { NormalLiveStatusList: normalLives, SpecialLiveStatusList: specialLives, TrainingLiveStatusList: []model.TrainingLiveStatusList{}, - MarathonLiveStatusList: []interface{}{}, - FreeLiveStatusList: []interface{}{}, + MarathonLiveStatusList: []any{}, + FreeLiveStatusList: []any{}, CanResumeLive: false, }, Status: 200, @@ -202,12 +202,12 @@ func Api(ctx *gin.Context) { } liveListResp := model.LiveScheduleResp{ Result: model.LiveScheduleRes{ - EventList: []interface{}{}, + EventList: []any{}, LiveList: livesList, - LimitedBonusList: []interface{}{}, + LimitedBonusList: []any{}, LimitedBonusCommonList: []model.LimitedBonusCommonList{}, // 特效道具 RandomLiveList: []model.RandomLiveList{}, // 随机歌曲 - FreeLiveList: []interface{}{}, + FreeLiveList: []any{}, TrainingLiveList: []model.TrainingLiveList{}, // 挑战歌曲 }, Status: 200, @@ -328,7 +328,7 @@ func Api(ctx *gin.Context) { err = UserEng.Table("skill_equip_m").Where("user_id = ?", ctx.GetString("userid")).Cols("unit_owning_user_id").GroupBy("unit_owning_user_id").Find(&unitOwningIds) CheckErr(err) - equipInfo := map[int]interface{}{} + equipInfo := map[int]any{} for _, v := range unitOwningIds { detail := []model.SkillEquipDetail{} err = UserEng.Table("skill_equip_m").Where("user_id = ? AND unit_owning_user_id = ?", ctx.GetString("userid"), v). @@ -482,7 +482,7 @@ func Api(ctx *gin.Context) { subScenarioResp := model.SubscenarioStatusResp{ Result: model.SubscenarioStatusRes{ SubscenarioStatusList: subScenarioLists, - UnlockedSubscenarioIds: []interface{}{}, + UnlockedSubscenarioIds: []any{}, }, Status: 200, CommandNum: false, @@ -575,7 +575,7 @@ func Api(ctx *gin.Context) { unitsResp := model.MultiUnitScenarioStatusResp{ Result: model.MultiUnitScenarioStatusRes{ MultiUnitScenarioStatusList: multiUnitsList, - UnlockedMultiUnitScenarioIds: []interface{}{}, + UnlockedMultiUnitScenarioIds: []any{}, }, Status: 200, CommandNum: false, @@ -648,7 +648,7 @@ func Api(ctx *gin.Context) { marqueeResp := model.NoticeMarqueeResp{ Result: model.NoticeMarqueeRes{ ItemCount: 0, - MarqueeList: []interface{}{}, + MarqueeList: []any{}, }, Status: 200, CommandNum: false, @@ -678,7 +678,7 @@ func Api(ctx *gin.Context) { // key = "special_cutin_result" cutinResp := model.SpecialCutinResp{ Result: model.SpecialCutinRes{ - SpecialCutinList: []interface{}{}, + SpecialCutinList: []any{}, }, Status: 200, CommandNum: false, @@ -753,7 +753,7 @@ func Api(ctx *gin.Context) { case "stamp": // key = "stamp_result" stampResp := utils.ReadAllText("assets/sif/stamp.json") - var mStampResp interface{} + var mStampResp any err = json.Unmarshal([]byte(stampResp), &mStampResp) CheckErr(err) res, err = json.Marshal(mStampResp) @@ -807,7 +807,7 @@ func Api(ctx *gin.Context) { case "item": // key = "item_list_result" itemResp := utils.ReadAllText("assets/sif/item.json") - var mItemResp interface{} + var mItemResp any err = json.Unmarshal([]byte(itemResp), &mItemResp) CheckErr(err) res, err = json.Marshal(mItemResp) @@ -815,7 +815,7 @@ func Api(ctx *gin.Context) { case "marathon": // key = "marathon_result" marathonResp := model.MarathonInfoResp{ - Result: []interface{}{}, + Result: []any{}, Status: 200, CommandNum: false, TimeStamp: time.Now().Unix(), @@ -825,7 +825,7 @@ func Api(ctx *gin.Context) { case "challenge": // key = "challenge_result" challengeResp := model.ChallengeInfoResp{ - Result: []interface{}{}, + Result: []any{}, Status: 200, CommandNum: false, TimeStamp: time.Now().Unix(), @@ -897,7 +897,7 @@ func Api(ctx *gin.Context) { CheckErr(err) } else if v.Action == "cardRanking" { // key = "profile_card_ranking_result" - var result []interface{} + var result []any love := utils.ReadAllText("assets/sif/love.json") err := json.Unmarshal([]byte(love), &result) CheckErr(err) @@ -1076,7 +1076,7 @@ func Api(ctx *gin.Context) { CheckErr(err) } - var result interface{} + var result any err = json.Unmarshal([]byte(res), &result) CheckErr(err) results = append(results, result) @@ -1086,7 +1086,7 @@ func Api(ctx *gin.Context) { CheckErr(err) rp := model.ApiResp{ ResponseData: b, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } b, err = json.Marshal(rp) diff --git a/handler/award.go b/handler/award.go index 09c2e35..925c942 100644 --- a/handler/award.go +++ b/handler/award.go @@ -22,8 +22,8 @@ func AwardSet(ctx *gin.Context) { _, err := UserEng.Table("user_preference_m").Where("user_id = ?", ctx.GetString("userid")).Update(&pref) CheckErr(err) awardResp := model.AwardSetResp{ - ResponseData: []interface{}{}, - ReleaseInfo: []interface{}{}, + ResponseData: []any{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(awardResp) diff --git a/handler/background.go b/handler/background.go index 9fdd45f..c730af7 100644 --- a/handler/background.go +++ b/handler/background.go @@ -22,8 +22,8 @@ func BackgroundSet(ctx *gin.Context) { _, err := UserEng.Table("user_preference_m").Where("user_id = ?", ctx.GetString("userid")).Update(&pref) CheckErr(err) backgroundResp := model.BackgroundSetResp{ - ResponseData: []interface{}{}, - ReleaseInfo: []interface{}{}, + ResponseData: []any{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(backgroundResp) diff --git a/handler/download.go b/handler/download.go index 60fc5a5..051e221 100644 --- a/handler/download.go +++ b/handler/download.go @@ -45,7 +45,7 @@ func DownloadAdditional(ctx *gin.Context) { addResp := model.AdditionalResp{ ResponseData: pkgList, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(addResp) @@ -85,7 +85,7 @@ func DownloadBatch(ctx *gin.Context) { batchResp := model.BatchResp{ ResponseData: pkgList, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(batchResp) @@ -126,7 +126,7 @@ func DownloadUpdate(ctx *gin.Context) { updateResp := model.UpdateResp{ ResponseData: pkgList, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(updateResp) @@ -157,7 +157,7 @@ func DownloadUrl(ctx *gin.Context) { ResponseData: model.UrlRes{ UrlList: urlList, }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(urlResp) @@ -175,8 +175,8 @@ func DownloadUrl(ctx *gin.Context) { func DownloadEvent(ctx *gin.Context) { eventResp := model.EventResp{ - ResponseData: []interface{}{}, - ReleaseInfo: []interface{}{}, + ResponseData: []any{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(eventResp) diff --git a/handler/event.go b/handler/event.go index d47ff20..eaedbeb 100644 --- a/handler/event.go +++ b/handler/event.go @@ -25,7 +25,7 @@ func EventList(ctx *gin.Context) { TargetList: targets, ServerTimestamp: time.Now().Unix(), }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(eventsResp) diff --git a/handler/gdpr.go b/handler/gdpr.go index 8941a4d..00edd28 100644 --- a/handler/gdpr.go +++ b/handler/gdpr.go @@ -19,7 +19,7 @@ func Gdpr(ctx *gin.Context) { IsEea: false, ServerTimestamp: time.Now().Unix(), }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(gdprResp) diff --git a/handler/global.go b/handler/global.go index a711c92..788ae6c 100644 --- a/handler/global.go +++ b/handler/global.go @@ -53,8 +53,8 @@ func SignResp(ep, body, key string) (resp string) { return } -func GetUserStatus() map[string]interface{} { - var r map[string]interface{} +func GetUserStatus() map[string]any { + var r map[string]any if err := json.Unmarshal([]byte(utils.ReadAllText("assets/as/userStatus.json")), &r); err != nil { panic(err) } diff --git a/handler/lbonus.go b/handler/lbonus.go index 2f6d50f..8c24895 100644 --- a/handler/lbonus.go +++ b/handler/lbonus.go @@ -95,7 +95,7 @@ func LBonusExecute(ctx *gin.Context) { LbRes := model.LbResp{ ResponseData: model.LbRes{ - Sheets: []interface{}{}, + Sheets: []any{}, CalendarInfo: model.CalendarInfo{ CurrentDate: time.Now().Format("2006-01-02 03:04:05"), CurrentMonth: model.LbMonth{ @@ -120,7 +120,7 @@ func LBonusExecute(ctx *gin.Context) { }, }, }, - LicenseLbonusList: []interface{}{}, + LicenseLbonusList: []any{}, ClassSystem: model.LbClassSystem{ RankInfo: model.LbRankInfo{ BeforeClassRankID: 10, @@ -131,7 +131,7 @@ func LBonusExecute(ctx *gin.Context) { IsOpened: true, IsVisible: true, }, - StartDashSheets: []interface{}{}, + StartDashSheets: []any{}, EffortPoint: []model.EffortPoint{ { LiveEffortPointBoxSpecID: 5, @@ -141,12 +141,12 @@ func LBonusExecute(ctx *gin.Context) { Rewards: []model.Rewards{}, }, }, - LimitedEffortBox: []interface{}{}, + LimitedEffortBox: []any{}, MuseumInfo: model.Museum{}, ServerTimestamp: time.Now().Unix(), PresentCnt: 0, }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } diff --git a/handler/live.go b/handler/live.go index 9a5fd24..757fa0e 100644 --- a/handler/live.go +++ b/handler/live.go @@ -408,7 +408,7 @@ func PlayLive(ctx *gin.Context) { CanActivateEffect: true, ServerTimestamp: time.Now().Unix(), }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } @@ -427,8 +427,8 @@ func PlayLive(ctx *gin.Context) { func GameOver(ctx *gin.Context) { overResp := model.GameOverResp{ - ResponseData: []interface{}{}, - ReleaseInfo: []interface{}{}, + ResponseData: []any{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(overResp) @@ -519,7 +519,7 @@ func PlayScore(ctx *gin.Context) { CanActivateEffect: true, ServerTimestamp: int(time.Now().Unix()), }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } @@ -593,13 +593,13 @@ func PlayReward(ctx *gin.Context) { RewardUnitList: model.RewardUnitList{ LiveClear: []model.LiveClear{}, LiveRank: []model.LiveRank{}, - LiveCombo: []interface{}{}, + LiveCombo: []any{}, }, - UnlockedSubscenarioIds: []interface{}{}, - UnlockedMultiUnitScenarioIds: []interface{}{}, + UnlockedSubscenarioIds: []any{}, + UnlockedMultiUnitScenarioIds: []any{}, EffortPoint: []model.EffortPoint{}, IsEffortPointVisible: false, - LimitedEffortBox: []interface{}{}, + LimitedEffortBox: []any{}, UnitList: unitsList, BeforeUserInfo: model.BeforeUserInfo{ Level: 1028, @@ -656,14 +656,14 @@ func PlayReward(ctx *gin.Context) { }, }, GoalAccompInfo: model.GoalAccompInfo{ - AchievedIds: []interface{}{}, - Rewards: []interface{}{}, + AchievedIds: []any{}, + Rewards: []any{}, }, - SpecialRewardInfo: []interface{}{}, - EventInfo: []interface{}{}, - DailyRewardInfo: []interface{}{}, + SpecialRewardInfo: []any{}, + EventInfo: []any{}, + DailyRewardInfo: []any{}, CanSendFriendRequest: false, - UsingBuffInfo: []interface{}{}, + UsingBuffInfo: []any{}, ClassSystem: model.ClassSystem{ RankInfo: model.RewardRankInfo{ BeforeClassRankID: 10, @@ -676,13 +676,13 @@ func PlayReward(ctx *gin.Context) { }, AccomplishedAchievementList: []model.AccomplishedAchievementList{}, UnaccomplishedAchievementCnt: 15, - AddedAchievementList: []interface{}{}, + AddedAchievementList: []any{}, MuseumInfo: model.Museum{}, UnitSupportList: []model.RewardUnitSupportList{}, ServerTimestamp: 1679238066, PresentCnt: 2159, }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } diff --git a/handler/login.go b/handler/login.go index d6f2fde..fd56ff2 100644 --- a/handler/login.go +++ b/handler/login.go @@ -20,7 +20,7 @@ func AuthKey(ctx *gin.Context) { AuthorizeToken: ctx.GetString("authorize_token"), DummyToken: ctx.GetString("dummy_token"), }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(authResp) @@ -54,7 +54,7 @@ func Login(ctx *gin.Context) { ServerTimestamp: time.Now().Unix(), AdultFlag: 2, }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(loginResp) diff --git a/handler/multiunit.go b/handler/multiunit.go index cb6665a..17b0961 100644 --- a/handler/multiunit.go +++ b/handler/multiunit.go @@ -23,7 +23,7 @@ func MultiUnitStartUp(ctx *gin.Context) { ScenarioAdjustment: 50, ServerTimestamp: time.Now().Unix(), }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(startResp) diff --git a/handler/museum.go b/handler/museum.go index c8fefec..c6058ee 100644 --- a/handler/museum.go +++ b/handler/museum.go @@ -43,7 +43,7 @@ func MuseumInfo(ctx *gin.Context) { }, ServerTimestamp: time.Now().Unix(), }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(museumResp) diff --git a/handler/notice.go b/handler/notice.go index a5006d3..f383852 100644 --- a/handler/notice.go +++ b/handler/notice.go @@ -16,10 +16,10 @@ func NoticeFriendVariety(ctx *gin.Context) { noticeResp := model.NoticeFriendVarietyResp{ ResponseData: model.NoticeFriendVarietyRes{ ItemCount: 1, - NoticeList: []interface{}{}, + NoticeList: []any{}, ServerTimestamp: time.Now().Unix(), }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(noticeResp) @@ -39,10 +39,10 @@ func NoticeFriendGreeting(ctx *gin.Context) { noticeResp := model.NoticeFriendGreetingResp{ ResponseData: model.NoticeFriendGreetingRes{ NextId: 0, - NoticeList: []interface{}{}, + NoticeList: []any{}, ServerTimestamp: time.Now().Unix(), }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(noticeResp) @@ -63,10 +63,10 @@ func NoticeUserGreeting(ctx *gin.Context) { ResponseData: model.NoticeUserGreetingRes{ ItemCount: 0, HasNext: false, - NoticeList: []interface{}{}, + NoticeList: []any{}, ServerTimestamp: time.Now().Unix(), }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(noticeResp) diff --git a/handler/payment.go b/handler/payment.go index b2e4f9e..b2d8178 100644 --- a/handler/payment.go +++ b/handler/payment.go @@ -24,13 +24,13 @@ func ProductList(ctx *gin.Context) { LimitAmount: nil, MonthUsed: 0, }, - SnsProductList: []interface{}{}, - ProductList: []interface{}{}, - SubscriptionList: []interface{}{}, + SnsProductList: []any{}, + ProductList: []any{}, + SubscriptionList: []any{}, ShowPointShop: true, ServerTimestamp: time.Now().Unix(), }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(prodReesp) diff --git a/handler/personalnotice.go b/handler/personalnotice.go index 4032e17..367337c 100644 --- a/handler/personalnotice.go +++ b/handler/personalnotice.go @@ -22,7 +22,7 @@ func PersonalNotice(ctx *gin.Context) { Contents: "", ServerTimestamp: time.Now().Unix(), }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(noticeResp) diff --git a/handler/private.go b/handler/private.go index 3a70a46..ad5da7e 100644 --- a/handler/private.go +++ b/handler/private.go @@ -54,37 +54,37 @@ type LoginAutoResp struct { } type InitializeResp struct { - BrandLogo string `json:"brand_logo"` - BrandName string `json:"brand_name"` - DaoyuClientid string `json:"daoyu_clientid"` - DaoyuDownloadURL string `json:"daoyu_download_url"` - DeviceFeature string `json:"device_feature"` - DisplayThirdaccout int `json:"display_thirdaccout"` - ForceShowAgreement int `json:"force_show_agreement"` - GreportLogLevel string `json:"greport_log_level"` - GuestEnable int `json:"guest_enable"` - IsMatch int `json:"is_match"` - LogLevel string `json:"log_level"` - LoginButton []string `json:"login_button"` - LoginIcon []interface{} `json:"login_icon"` - LoginLimitEnable int `json:"login_limit_enable"` - NeedFloatWindowPermission int `json:"need_float_window_permission"` - NewDeviceIDServer string `json:"new_device_id_server"` - QqAppID string `json:"qq_appId"` - QqKey string `json:"qq_key"` - ShowGuestConfirm int `json:"show_guest_confirm"` - VoicetipButton int `json:"voicetip_button"` - VoicetipOne string `json:"voicetip_one"` - VoicetipTwo string `json:"voicetip_two"` - WegameAppid string `json:"wegame_appid"` - WegameAppkey string `json:"wegame_appkey"` - WegameClientid string `json:"wegame_clientid"` - WegameCompanyID string `json:"wegame_companyId"` - WegameLoginURL string `json:"wegame_loginUrl"` - WeiboAppKey string `json:"weibo_appKey"` - WeiboRedirectURL string `json:"weibo_redirectUrl"` - WeixinAppID string `json:"weixin_appId"` - WeixinKey string `json:"weixin_key"` + BrandLogo string `json:"brand_logo"` + BrandName string `json:"brand_name"` + DaoyuClientid string `json:"daoyu_clientid"` + DaoyuDownloadURL string `json:"daoyu_download_url"` + DeviceFeature string `json:"device_feature"` + DisplayThirdaccout int `json:"display_thirdaccout"` + ForceShowAgreement int `json:"force_show_agreement"` + GreportLogLevel string `json:"greport_log_level"` + GuestEnable int `json:"guest_enable"` + IsMatch int `json:"is_match"` + LogLevel string `json:"log_level"` + LoginButton []string `json:"login_button"` + LoginIcon []any `json:"login_icon"` + LoginLimitEnable int `json:"login_limit_enable"` + NeedFloatWindowPermission int `json:"need_float_window_permission"` + NewDeviceIDServer string `json:"new_device_id_server"` + QqAppID string `json:"qq_appId"` + QqKey string `json:"qq_key"` + ShowGuestConfirm int `json:"show_guest_confirm"` + VoicetipButton int `json:"voicetip_button"` + VoicetipOne string `json:"voicetip_one"` + VoicetipTwo string `json:"voicetip_two"` + WegameAppid string `json:"wegame_appid"` + WegameAppkey string `json:"wegame_appkey"` + WegameClientid string `json:"wegame_clientid"` + WegameCompanyID string `json:"wegame_companyId"` + WegameLoginURL string `json:"wegame_loginUrl"` + WeiboAppKey string `json:"weibo_appKey"` + WeiboRedirectURL string `json:"weibo_redirectUrl"` + WeixinAppID string `json:"weixin_appId"` + WeixinKey string `json:"weixin_key"` } func Active(ctx *gin.Context) { @@ -168,7 +168,7 @@ func Initialize(ctx *gin.Context) { GreportLogLevel: "off", LogLevel: "off", LoginButton: []string{"official"}, - LoginIcon: []interface{}{}, + LoginIcon: []any{}, NeedFloatWindowPermission: 1, NewDeviceIDServer: strings.ToUpper(openssl.Md5ToString(deviceId)), ShowGuestConfirm: 1, diff --git a/handler/profile.go b/handler/profile.go index 35f0157..1b6e3a1 100644 --- a/handler/profile.go +++ b/handler/profile.go @@ -22,8 +22,8 @@ func ProfileRegister(ctx *gin.Context) { _, err := UserEng.Table("user_preference_m").Where("user_id = ?", ctx.GetString("userid")).Update(&pref) CheckErr(err) profileResp := model.ProfileRegisterResp{ - ResponseData: []interface{}{}, - ReleaseInfo: []interface{}{}, + ResponseData: []any{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(profileResp) diff --git a/handler/scenario.go b/handler/scenario.go index 8e60b98..3371824 100644 --- a/handler/scenario.go +++ b/handler/scenario.go @@ -24,7 +24,7 @@ func ScenarioStartup(ctx *gin.Context) { ScenarioAdjustment: 50, ServerTimestamp: time.Now().Unix(), }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(startResp) diff --git a/handler/subscenario.go b/handler/subscenario.go index 4700235..a0febee 100644 --- a/handler/subscenario.go +++ b/handler/subscenario.go @@ -24,7 +24,7 @@ func SubScenarioStartup(ctx *gin.Context) { ScenarioAdjustment: 50, ServerTimestamp: time.Now().Unix(), }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(startResp) diff --git a/handler/tos.go b/handler/tos.go index 9fd23bd..7ebf1ab 100644 --- a/handler/tos.go +++ b/handler/tos.go @@ -20,7 +20,7 @@ func TosCheck(ctx *gin.Context) { IsAgreed: true, ServerTimestamp: time.Now().Unix(), }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(tosResp) diff --git a/handler/unit.go b/handler/unit.go index 57eb919..f7a5bdf 100644 --- a/handler/unit.go +++ b/handler/unit.go @@ -15,8 +15,8 @@ import ( func SetDisplayRank(ctx *gin.Context) { dispResp := model.SetDisplayRankResp{ - ResponseData: []interface{}{}, - ReleaseInfo: []interface{}{}, + ResponseData: []any{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(dispResp) @@ -158,8 +158,8 @@ func SetDeck(ctx *gin.Context) { } dispResp := model.SetDeckResp{ - ResponseData: []interface{}{}, - ReleaseInfo: []interface{}{}, + ResponseData: []any{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(dispResp) @@ -200,8 +200,8 @@ func SetDeckName(ctx *gin.Context) { CheckErr(err) dispResp := model.SetDeckResp{ - ResponseData: []interface{}{}, - ReleaseInfo: []interface{}{}, + ResponseData: []any{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(dispResp) @@ -264,8 +264,8 @@ func WearAccessory(ctx *gin.Context) { } wearResp := model.AwardSetResp{ - ResponseData: []interface{}{}, - ReleaseInfo: []interface{}{}, + ResponseData: []any{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(wearResp) @@ -328,8 +328,8 @@ func RemoveSkillEquip(ctx *gin.Context) { } wearResp := model.AwardSetResp{ - ResponseData: []interface{}{}, - ReleaseInfo: []interface{}{}, + ResponseData: []any{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(wearResp) diff --git a/handler/user.go b/handler/user.go index 7cf35e7..f92e293 100644 --- a/handler/user.go +++ b/handler/user.go @@ -16,8 +16,8 @@ import ( func SetNotificationToken(ctx *gin.Context) { notifResp := model.NotificationResp{ - ResponseData: []interface{}{}, - ReleaseInfo: []interface{}{}, + ResponseData: []any{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(notifResp) @@ -41,8 +41,8 @@ func ChangeNavi(ctx *gin.Context) { _, err := UserEng.Table("user_preference_m").Where("user_id = ?", ctx.GetString("userid")).Update(&pref) CheckErr(err) naviResp := model.UserNaviChangeResp{ - ResponseData: []interface{}{}, - ReleaseInfo: []interface{}{}, + ResponseData: []any{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(naviResp) @@ -78,7 +78,7 @@ func ChangeName(ctx *gin.Context) { AfterName: req.Get("name").String(), ServerTimestamp: time.Now().Unix(), }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(nameResp) diff --git a/handler/userinfo.go b/handler/userinfo.go index 8ec3b69..81890e4 100644 --- a/handler/userinfo.go +++ b/handler/userinfo.go @@ -55,7 +55,7 @@ func UserInfo(ctx *gin.Context) { }, ServerTimestamp: time.Now().Unix(), }, - ReleaseInfo: []interface{}{}, + ReleaseInfo: []any{}, StatusCode: 200, } resp, err := json.Marshal(userResp) diff --git a/middleware/authkey.go b/middleware/authkey.go index 7db6150..5d0cffb 100644 --- a/middleware/authkey.go +++ b/middleware/authkey.go @@ -32,7 +32,7 @@ func AuthKey(ctx *gin.Context) { ctx.Set("dummy_token", serverToken) ctx.Set("authorize_token", authorizeToken) - authJson, err := json.Marshal(map[string]interface{}{ + authJson, err := json.Marshal(map[string]any{ "client_token": clientToken, "server_token": serverToken, }) diff --git a/model/album.go b/model/album.go index 4beba9e..64207f3 100644 --- a/model/album.go +++ b/model/album.go @@ -30,6 +30,6 @@ type AlbumSeriesRes struct { // AlbumSeriesResp ... type AlbumSeriesResp struct { ResponseData []AlbumSeriesRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` + ReleaseInfo []any `json:"release_info"` StatusCode int `json:"status_code"` } diff --git a/model/allstars.go b/model/allstars.go index 674c3f3..28be59a 100644 --- a/model/allstars.go +++ b/model/allstars.go @@ -6,9 +6,9 @@ type AsLoginRes struct { UserModel UserModel `json:"user_model"` IsPlatformServiceLinked bool `json:"is_platform_service_linked"` LastTimestamp int64 `json:"last_timestamp"` - Cautions []interface{} `json:"cautions"` + Cautions []any `json:"cautions"` ShowHomeCaution bool `json:"show_home_caution"` - LiveResume interface{} `json:"live_resume"` + LiveResume any `json:"live_resume"` FromEea bool `json:"from_eea"` GdprConsentedInfo GdprConsentedInfo `json:"gdpr_consented_info"` UserID int `json:"user_id"` @@ -22,67 +22,67 @@ type AsLoginRes struct { // UserModel ... type UserModel struct { - UserStatus AsUserStatus `json:"user_status"` - UserMemberByMemberID interface{} `json:"user_member_by_member_id"` - UserCardByCardID []interface{} `json:"user_card_by_card_id"` - UserSuitBySuitID []interface{} `json:"user_suit_by_suit_id"` - UserLiveDeckByID []interface{} `json:"user_live_deck_by_id"` - UserLivePartyByID []interface{} `json:"user_live_party_by_id"` - UserLessonDeckByID []interface{} `json:"user_lesson_deck_by_id"` - UserLiveMvDeckByID []interface{} `json:"user_live_mv_deck_by_id"` - UserLiveMvDeckCustomByID interface{} `json:"user_live_mv_deck_custom_by_id"` - UserLiveDifficultyByDifficultyID []interface{} `json:"user_live_difficulty_by_difficulty_id"` - UserStoryMainByStoryMainID []interface{} `json:"user_story_main_by_story_main_id"` - UserStoryMainSelectedByStoryMainCellID []interface{} `json:"user_story_main_selected_by_story_main_cell_id"` - UserVoiceByVoiceID []interface{} `json:"user_voice_by_voice_id"` - UserEmblemByEmblemID []interface{} `json:"user_emblem_by_emblem_id"` - UserGachaTicketByTicketID []interface{} `json:"user_gacha_ticket_by_ticket_id"` - UserGachaPointByPointID []interface{} `json:"user_gacha_point_by_point_id"` - UserLessonEnhancingItemByItemID []interface{} `json:"user_lesson_enhancing_item_by_item_id"` - UserTrainingMaterialByItemID []interface{} `json:"user_training_material_by_item_id"` - UserGradeUpItemByItemID []interface{} `json:"user_grade_up_item_by_item_id"` - UserCustomBackgroundByID []interface{} `json:"user_custom_background_by_id"` - UserStorySideByID []interface{} `json:"user_story_side_by_id"` - UserStoryMemberByID []interface{} `json:"user_story_member_by_id"` - UserCommunicationMemberDetailBadgeByID []interface{} `json:"user_communication_member_detail_badge_by_id"` - UserStoryEventHistoryByID []interface{} `json:"user_story_event_history_by_id"` - UserRecoveryLpByID []interface{} `json:"user_recovery_lp_by_id"` - UserRecoveryApByID []interface{} `json:"user_recovery_ap_by_id"` - UserMissionByMissionID []interface{} `json:"user_mission_by_mission_id"` - UserDailyMissionByMissionID []interface{} `json:"user_daily_mission_by_mission_id"` - UserWeeklyMissionByMissionID []interface{} `json:"user_weekly_mission_by_mission_id"` - UserInfoTriggerBasicByTriggerID []interface{} `json:"user_info_trigger_basic_by_trigger_id"` - UserInfoTriggerCardGradeUpByTriggerID []interface{} `json:"user_info_trigger_card_grade_up_by_trigger_id"` - UserInfoTriggerMemberGuildSupportItemExpiredByTriggerID []interface{} `json:"user_info_trigger_member_guild_support_item_expired_by_trigger_id"` - UserInfoTriggerMemberLoveLevelUpByTriggerID []interface{} `json:"user_info_trigger_member_love_level_up_by_trigger_id"` - UserAccessoryByUserAccessoryID []interface{} `json:"user_accessory_by_user_accessory_id"` - UserAccessoryLevelUpItemByID []interface{} `json:"user_accessory_level_up_item_by_id"` - UserAccessoryRarityUpItemByID []interface{} `json:"user_accessory_rarity_up_item_by_id"` - UserUnlockScenesByEnum []interface{} `json:"user_unlock_scenes_by_enum"` - UserSceneTipsByEnum []interface{} `json:"user_scene_tips_by_enum"` - UserRuleDescriptionByID []interface{} `json:"user_rule_description_by_id"` - UserExchangeEventPointByID []interface{} `json:"user_exchange_event_point_by_id"` - UserSchoolIdolFestivalIDRewardMissionByID []interface{} `json:"user_school_idol_festival_id_reward_mission_by_id"` - UserGpsPresentReceivedByID []interface{} `json:"user_gps_present_received_by_id"` - UserEventMarathonByEventMasterID []interface{} `json:"user_event_marathon_by_event_master_id"` - UserEventMiningByEventMasterID []interface{} `json:"user_event_mining_by_event_master_id"` - UserEventCoopByEventMasterID []interface{} `json:"user_event_coop_by_event_master_id"` - UserLiveSkipTicketByID []interface{} `json:"user_live_skip_ticket_by_id"` - UserStoryEventUnlockItemByID []interface{} `json:"user_story_event_unlock_item_by_id"` - UserEventMarathonBoosterByID []interface{} `json:"user_event_marathon_booster_by_id"` - UserReferenceBookByID []interface{} `json:"user_reference_book_by_id"` - UserReviewRequestProcessFlowByID []interface{} `json:"user_review_request_process_flow_by_id"` - UserRankExpByID []interface{} `json:"user_rank_exp_by_id"` - UserShareByID []interface{} `json:"user_share_by_id"` - UserTowerByTowerID []interface{} `json:"user_tower_by_tower_id"` - UserRecoveryTowerCardUsedCountItemByRecoveryTowerCardUsedCountItemMasterID []interface{} `json:"user_recovery_tower_card_used_count_item_by_recovery_tower_card_used_count_item_master_id"` - UserStoryLinkageByID []interface{} `json:"user_story_linkage_by_id"` - UserSubscriptionStatusByID []interface{} `json:"user_subscription_status_by_id"` - UserStoryMainPartDigestMovieByID []interface{} `json:"user_story_main_part_digest_movie_by_id"` - UserMemberGuildByID []interface{} `json:"user_member_guild_by_id"` - UserMemberGuildSupportItemByID []interface{} `json:"user_member_guild_support_item_by_id"` - UserDailyTheaterByDailyTheaterID []interface{} `json:"user_daily_theater_by_daily_theater_id"` - UserPlayListByID []interface{} `json:"user_play_list_by_id"` + UserStatus AsUserStatus `json:"user_status"` + UserMemberByMemberID any `json:"user_member_by_member_id"` + UserCardByCardID []any `json:"user_card_by_card_id"` + UserSuitBySuitID []any `json:"user_suit_by_suit_id"` + UserLiveDeckByID []any `json:"user_live_deck_by_id"` + UserLivePartyByID []any `json:"user_live_party_by_id"` + UserLessonDeckByID []any `json:"user_lesson_deck_by_id"` + UserLiveMvDeckByID []any `json:"user_live_mv_deck_by_id"` + UserLiveMvDeckCustomByID any `json:"user_live_mv_deck_custom_by_id"` + UserLiveDifficultyByDifficultyID []any `json:"user_live_difficulty_by_difficulty_id"` + UserStoryMainByStoryMainID []any `json:"user_story_main_by_story_main_id"` + UserStoryMainSelectedByStoryMainCellID []any `json:"user_story_main_selected_by_story_main_cell_id"` + UserVoiceByVoiceID []any `json:"user_voice_by_voice_id"` + UserEmblemByEmblemID []any `json:"user_emblem_by_emblem_id"` + UserGachaTicketByTicketID []any `json:"user_gacha_ticket_by_ticket_id"` + UserGachaPointByPointID []any `json:"user_gacha_point_by_point_id"` + UserLessonEnhancingItemByItemID []any `json:"user_lesson_enhancing_item_by_item_id"` + UserTrainingMaterialByItemID []any `json:"user_training_material_by_item_id"` + UserGradeUpItemByItemID []any `json:"user_grade_up_item_by_item_id"` + UserCustomBackgroundByID []any `json:"user_custom_background_by_id"` + UserStorySideByID []any `json:"user_story_side_by_id"` + UserStoryMemberByID []any `json:"user_story_member_by_id"` + UserCommunicationMemberDetailBadgeByID []any `json:"user_communication_member_detail_badge_by_id"` + UserStoryEventHistoryByID []any `json:"user_story_event_history_by_id"` + UserRecoveryLpByID []any `json:"user_recovery_lp_by_id"` + UserRecoveryApByID []any `json:"user_recovery_ap_by_id"` + UserMissionByMissionID []any `json:"user_mission_by_mission_id"` + UserDailyMissionByMissionID []any `json:"user_daily_mission_by_mission_id"` + UserWeeklyMissionByMissionID []any `json:"user_weekly_mission_by_mission_id"` + UserInfoTriggerBasicByTriggerID []any `json:"user_info_trigger_basic_by_trigger_id"` + UserInfoTriggerCardGradeUpByTriggerID []any `json:"user_info_trigger_card_grade_up_by_trigger_id"` + UserInfoTriggerMemberGuildSupportItemExpiredByTriggerID []any `json:"user_info_trigger_member_guild_support_item_expired_by_trigger_id"` + UserInfoTriggerMemberLoveLevelUpByTriggerID []any `json:"user_info_trigger_member_love_level_up_by_trigger_id"` + UserAccessoryByUserAccessoryID []any `json:"user_accessory_by_user_accessory_id"` + UserAccessoryLevelUpItemByID []any `json:"user_accessory_level_up_item_by_id"` + UserAccessoryRarityUpItemByID []any `json:"user_accessory_rarity_up_item_by_id"` + UserUnlockScenesByEnum []any `json:"user_unlock_scenes_by_enum"` + UserSceneTipsByEnum []any `json:"user_scene_tips_by_enum"` + UserRuleDescriptionByID []any `json:"user_rule_description_by_id"` + UserExchangeEventPointByID []any `json:"user_exchange_event_point_by_id"` + UserSchoolIdolFestivalIDRewardMissionByID []any `json:"user_school_idol_festival_id_reward_mission_by_id"` + UserGpsPresentReceivedByID []any `json:"user_gps_present_received_by_id"` + UserEventMarathonByEventMasterID []any `json:"user_event_marathon_by_event_master_id"` + UserEventMiningByEventMasterID []any `json:"user_event_mining_by_event_master_id"` + UserEventCoopByEventMasterID []any `json:"user_event_coop_by_event_master_id"` + UserLiveSkipTicketByID []any `json:"user_live_skip_ticket_by_id"` + UserStoryEventUnlockItemByID []any `json:"user_story_event_unlock_item_by_id"` + UserEventMarathonBoosterByID []any `json:"user_event_marathon_booster_by_id"` + UserReferenceBookByID []any `json:"user_reference_book_by_id"` + UserReviewRequestProcessFlowByID []any `json:"user_review_request_process_flow_by_id"` + UserRankExpByID []any `json:"user_rank_exp_by_id"` + UserShareByID []any `json:"user_share_by_id"` + UserTowerByTowerID []any `json:"user_tower_by_tower_id"` + UserRecoveryTowerCardUsedCountItemByRecoveryTowerCardUsedCountItemMasterID []any `json:"user_recovery_tower_card_used_count_item_by_recovery_tower_card_used_count_item_master_id"` + UserStoryLinkageByID []any `json:"user_story_linkage_by_id"` + UserSubscriptionStatusByID []any `json:"user_subscription_status_by_id"` + UserStoryMainPartDigestMovieByID []any `json:"user_story_main_part_digest_movie_by_id"` + UserMemberGuildByID []any `json:"user_member_guild_by_id"` + UserMemberGuildSupportItemByID []any `json:"user_member_guild_support_item_by_id"` + UserDailyTheaterByDailyTheaterID []any `json:"user_daily_theater_by_daily_theater_id"` + UserPlayListByID []any `json:"user_play_list_by_id"` } // Name ... @@ -102,56 +102,56 @@ type Message struct { // AsUserStatus ... type AsUserStatus struct { - Name Name `json:"name"` - Nickname Nickname `json:"nickname"` - LastLoginAt int64 `json:"last_login_at"` - Rank int `json:"rank"` - Exp int `json:"exp"` - Message Message `json:"message"` - RecommendCardMasterID int `json:"recommend_card_master_id"` - MaxFriendNum int `json:"max_friend_num"` - LivePointFullAt int `json:"live_point_full_at"` - LivePointBroken int `json:"live_point_broken"` - LivePointSubscriptionRecoveryDailyCount int `json:"live_point_subscription_recovery_daily_count"` - LivePointSubscriptionRecoveryDailyResetAt int `json:"live_point_subscription_recovery_daily_reset_at"` - ActivityPointCount int `json:"activity_point_count"` - ActivityPointResetAt int `json:"activity_point_reset_at"` - ActivityPointPaymentRecoveryDailyCount int `json:"activity_point_payment_recovery_daily_count"` - ActivityPointPaymentRecoveryDailyResetAt int `json:"activity_point_payment_recovery_daily_reset_at"` - GameMoney int `json:"game_money"` - CardExp int `json:"card_exp"` - FreeSnsCoin int `json:"free_sns_coin"` - AppleSnsCoin int `json:"apple_sns_coin"` - GoogleSnsCoin int `json:"google_sns_coin"` - Cash int `json:"cash"` - SubscriptionCoin int `json:"subscription_coin"` - BirthDate interface{} `json:"birth_date"` - BirthMonth int `json:"birth_month"` - BirthDay int `json:"birth_day"` - LatestLiveDeckID int `json:"latest_live_deck_id"` - MainLessonDeckID int `json:"main_lesson_deck_id"` - FavoriteMemberID int `json:"favorite_member_id"` - LastLiveDifficultyID int `json:"last_live_difficulty_id"` - LpMagnification int `json:"lp_magnification"` - EmblemID int `json:"emblem_id"` - DeviceToken string `json:"device_token"` - TutorialPhase int `json:"tutorial_phase"` - TutorialEndAt int `json:"tutorial_end_at"` - LoginDays int `json:"login_days"` - NaviTapCount int `json:"navi_tap_count"` - NaviTapRecoverAt int `json:"navi_tap_recover_at"` - IsAutoMode bool `json:"is_auto_mode"` - MaxScoreLiveDifficultyMasterID int `json:"max_score_live_difficulty_master_id"` - LiveMaxScore int `json:"live_max_score"` - MaxComboLiveDifficultyMasterID int `json:"max_combo_live_difficulty_master_id"` - LiveMaxCombo int `json:"live_max_combo"` - LessonResumeStatus int `json:"lesson_resume_status"` - AccessoryBoxAdditional int `json:"accessory_box_additional"` - TermsOfUseVersion int `json:"terms_of_use_version"` - BootstrapSifidCheckAt int `json:"bootstrap_sifid_check_at"` - GdprVersion int `json:"gdpr_version"` - MemberGuildMemberMasterID int `json:"member_guild_member_master_id"` - MemberGuildLastUpdatedAt int `json:"member_guild_last_updated_at"` + Name Name `json:"name"` + Nickname Nickname `json:"nickname"` + LastLoginAt int64 `json:"last_login_at"` + Rank int `json:"rank"` + Exp int `json:"exp"` + Message Message `json:"message"` + RecommendCardMasterID int `json:"recommend_card_master_id"` + MaxFriendNum int `json:"max_friend_num"` + LivePointFullAt int `json:"live_point_full_at"` + LivePointBroken int `json:"live_point_broken"` + LivePointSubscriptionRecoveryDailyCount int `json:"live_point_subscription_recovery_daily_count"` + LivePointSubscriptionRecoveryDailyResetAt int `json:"live_point_subscription_recovery_daily_reset_at"` + ActivityPointCount int `json:"activity_point_count"` + ActivityPointResetAt int `json:"activity_point_reset_at"` + ActivityPointPaymentRecoveryDailyCount int `json:"activity_point_payment_recovery_daily_count"` + ActivityPointPaymentRecoveryDailyResetAt int `json:"activity_point_payment_recovery_daily_reset_at"` + GameMoney int `json:"game_money"` + CardExp int `json:"card_exp"` + FreeSnsCoin int `json:"free_sns_coin"` + AppleSnsCoin int `json:"apple_sns_coin"` + GoogleSnsCoin int `json:"google_sns_coin"` + Cash int `json:"cash"` + SubscriptionCoin int `json:"subscription_coin"` + BirthDate any `json:"birth_date"` + BirthMonth int `json:"birth_month"` + BirthDay int `json:"birth_day"` + LatestLiveDeckID int `json:"latest_live_deck_id"` + MainLessonDeckID int `json:"main_lesson_deck_id"` + FavoriteMemberID int `json:"favorite_member_id"` + LastLiveDifficultyID int `json:"last_live_difficulty_id"` + LpMagnification int `json:"lp_magnification"` + EmblemID int `json:"emblem_id"` + DeviceToken string `json:"device_token"` + TutorialPhase int `json:"tutorial_phase"` + TutorialEndAt int `json:"tutorial_end_at"` + LoginDays int `json:"login_days"` + NaviTapCount int `json:"navi_tap_count"` + NaviTapRecoverAt int `json:"navi_tap_recover_at"` + IsAutoMode bool `json:"is_auto_mode"` + MaxScoreLiveDifficultyMasterID int `json:"max_score_live_difficulty_master_id"` + LiveMaxScore int `json:"live_max_score"` + MaxComboLiveDifficultyMasterID int `json:"max_combo_live_difficulty_master_id"` + LiveMaxCombo int `json:"live_max_combo"` + LessonResumeStatus int `json:"lesson_resume_status"` + AccessoryBoxAdditional int `json:"accessory_box_additional"` + TermsOfUseVersion int `json:"terms_of_use_version"` + BootstrapSifidCheckAt int `json:"bootstrap_sifid_check_at"` + GdprVersion int `json:"gdpr_version"` + MemberGuildMemberMasterID int `json:"member_guild_member_master_id"` + MemberGuildLastUpdatedAt int `json:"member_guild_last_updated_at"` } // GdprConsentedInfo ... @@ -207,10 +207,10 @@ type AsSuitInfo struct { // AsEmblemInfo ... type AsEmblemInfo struct { - EmblemMID int `json:"emblem_m_id"` - IsNew bool `json:"is_new"` - EmblemParam interface{} `json:"emblem_param"` - AcquiredAt int64 `json:"acquired_at"` + EmblemMID int `json:"emblem_m_id"` + IsNew bool `json:"is_new"` + EmblemParam any `json:"emblem_param"` + AcquiredAt int64 `json:"acquired_at"` } // AsEmblemId ... @@ -221,20 +221,20 @@ type AsEmblemId struct { // AsLiveDifficultyInfo ... type AsLiveDifficultyInfo struct { - LiveDifficultyID int `json:"live_difficulty_id"` - MaxScore int `json:"max_score"` - MaxCombo int `json:"max_combo"` - PlayCount int `json:"play_count"` - ClearCount int `json:"clear_count"` - CancelCount int `json:"cancel_count"` - NotClearedCount int `json:"not_cleared_count"` - IsFullCombo bool `json:"is_full_combo"` - ClearedDifficultyAchievement1 interface{} `json:"cleared_difficulty_achievement_1"` - ClearedDifficultyAchievement2 interface{} `json:"cleared_difficulty_achievement_2"` - ClearedDifficultyAchievement3 interface{} `json:"cleared_difficulty_achievement_3"` - EnableAutoplay bool `json:"enable_autoplay"` - IsAutoplay bool `json:"is_autoplay"` - IsNew bool `json:"is_new"` + LiveDifficultyID int `json:"live_difficulty_id"` + MaxScore int `json:"max_score"` + MaxCombo int `json:"max_combo"` + PlayCount int `json:"play_count"` + ClearCount int `json:"clear_count"` + CancelCount int `json:"cancel_count"` + NotClearedCount int `json:"not_cleared_count"` + IsFullCombo bool `json:"is_full_combo"` + ClearedDifficultyAchievement1 any `json:"cleared_difficulty_achievement_1"` + ClearedDifficultyAchievement2 any `json:"cleared_difficulty_achievement_2"` + ClearedDifficultyAchievement3 any `json:"cleared_difficulty_achievement_3"` + EnableAutoplay bool `json:"enable_autoplay"` + IsAutoplay bool `json:"is_autoplay"` + IsNew bool `json:"is_new"` } // AsMainStoryInfo ... @@ -327,9 +327,9 @@ type AsCardRes struct { // AsSaveDeckReq ... type AsSaveDeckReq struct { - DeckID int `json:"deck_id"` - CardWithSuit []int `json:"card_with_suit"` - SquadDict []interface{} `json:"squad_dict"` + DeckID int `json:"deck_id"` + CardWithSuit []int `json:"card_with_suit"` + SquadDict []any `json:"squad_dict"` } // AsDeckSquadDict ... @@ -410,7 +410,7 @@ type AsLivePartnerInfo struct { EmblemID int `json:"emblem_id"` IsNew bool `json:"is_new"` IntroductionMessage IntroductionMessage `json:"introduction_message"` - FriendApprovedAt interface{} `json:"friend_approved_at"` + FriendApprovedAt any `json:"friend_approved_at"` RequestStatus int `json:"request_status"` IsRequestPending bool `json:"is_request_pending"` } @@ -453,10 +453,10 @@ type AsCardAwakeningReq struct { } // AsReq ... -type AsReq interface{} +type AsReq any // AsResp ... -type AsResp interface{} +type AsResp any // PackUrlReqBody ... type PackUrlReqBody struct { @@ -495,42 +495,42 @@ type UserMemberInfo struct { } // UserMemberByMemberID ... -type UserMemberByMemberID interface{} +type UserMemberByMemberID any // UserLiveMvDeckInfo ... type UserLiveMvDeckInfo struct { - LiveMasterID interface{} `json:"live_master_id"` - MemberMasterID1 interface{} `json:"member_master_id_1"` - MemberMasterID2 interface{} `json:"member_master_id_2"` - MemberMasterID3 interface{} `json:"member_master_id_3"` - MemberMasterID4 interface{} `json:"member_master_id_4"` - MemberMasterID5 interface{} `json:"member_master_id_5"` - MemberMasterID6 interface{} `json:"member_master_id_6"` - MemberMasterID7 interface{} `json:"member_master_id_7"` - MemberMasterID8 interface{} `json:"member_master_id_8"` - MemberMasterID9 interface{} `json:"member_master_id_9"` - MemberMasterID10 interface{} `json:"member_master_id_10"` - MemberMasterID11 interface{} `json:"member_master_id_11"` - MemberMasterID12 interface{} `json:"member_master_id_12"` - SuitMasterID1 interface{} `json:"suit_master_id_1"` - SuitMasterID2 interface{} `json:"suit_master_id_2"` - SuitMasterID3 interface{} `json:"suit_master_id_3"` - SuitMasterID4 interface{} `json:"suit_master_id_4"` - SuitMasterID5 interface{} `json:"suit_master_id_5"` - SuitMasterID6 interface{} `json:"suit_master_id_6"` - SuitMasterID7 interface{} `json:"suit_master_id_7"` - SuitMasterID8 interface{} `json:"suit_master_id_8"` - SuitMasterID9 interface{} `json:"suit_master_id_9"` - SuitMasterID10 interface{} `json:"suit_master_id_10"` - SuitMasterID11 interface{} `json:"suit_master_id_11"` - SuitMasterID12 interface{} `json:"suit_master_id_12"` + LiveMasterID any `json:"live_master_id"` + MemberMasterID1 any `json:"member_master_id_1"` + MemberMasterID2 any `json:"member_master_id_2"` + MemberMasterID3 any `json:"member_master_id_3"` + MemberMasterID4 any `json:"member_master_id_4"` + MemberMasterID5 any `json:"member_master_id_5"` + MemberMasterID6 any `json:"member_master_id_6"` + MemberMasterID7 any `json:"member_master_id_7"` + MemberMasterID8 any `json:"member_master_id_8"` + MemberMasterID9 any `json:"member_master_id_9"` + MemberMasterID10 any `json:"member_master_id_10"` + MemberMasterID11 any `json:"member_master_id_11"` + MemberMasterID12 any `json:"member_master_id_12"` + SuitMasterID1 any `json:"suit_master_id_1"` + SuitMasterID2 any `json:"suit_master_id_2"` + SuitMasterID3 any `json:"suit_master_id_3"` + SuitMasterID4 any `json:"suit_master_id_4"` + SuitMasterID5 any `json:"suit_master_id_5"` + SuitMasterID6 any `json:"suit_master_id_6"` + SuitMasterID7 any `json:"suit_master_id_7"` + SuitMasterID8 any `json:"suit_master_id_8"` + SuitMasterID9 any `json:"suit_master_id_9"` + SuitMasterID10 any `json:"suit_master_id_10"` + SuitMasterID11 any `json:"suit_master_id_11"` + SuitMasterID12 any `json:"suit_master_id_12"` } // UserLiveMvDeckCustomByID ... -type UserLiveMvDeckCustomByID interface{} +type UserLiveMvDeckCustomByID any // SetThemeRes ... -type SetThemeRes interface{} +type SetThemeRes any // UserCommunicationMemberDetailBadgeByID ... type UserCommunicationMemberDetailBadgeByID struct { diff --git a/model/announce.go b/model/announce.go index 7df624f..e164268 100644 --- a/model/announce.go +++ b/model/announce.go @@ -2,9 +2,9 @@ package model // AnnounceResp ... type AnnounceResp struct { - ResponseData AnnounceRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData AnnounceRes `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // AnnounceRes ... diff --git a/model/api.go b/model/api.go index b4c0173..8119484 100644 --- a/model/api.go +++ b/model/api.go @@ -12,6 +12,6 @@ type ApiReq struct { // ApiResp ... type ApiResp struct { ResponseData json.RawMessage `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` + ReleaseInfo []any `json:"release_info"` StatusCode int `json:"status_code"` } diff --git a/model/authkey.go b/model/authkey.go index 5b832c6..da97f47 100644 --- a/model/authkey.go +++ b/model/authkey.go @@ -8,7 +8,7 @@ type AuthKeyRes struct { // AuthKeyResp ... type AuthKeyResp struct { - ResponseData AuthKeyRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData AuthKeyRes `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } diff --git a/model/award.go b/model/award.go index 111e107..8b988b9 100644 --- a/model/award.go +++ b/model/award.go @@ -2,9 +2,9 @@ package model // AwardSetResp ... type AwardSetResp struct { - ResponseData []interface{} `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData []any `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // AwardInfo ... diff --git a/model/background.go b/model/background.go index 65f3ed8..29cb9d2 100644 --- a/model/background.go +++ b/model/background.go @@ -2,9 +2,9 @@ package model // BackgroundSetResp ... type BackgroundSetResp struct { - ResponseData []interface{} `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData []any `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // BackgroundInfo ... diff --git a/model/challenge.go b/model/challenge.go index eacf79c..5e561f9 100644 --- a/model/challenge.go +++ b/model/challenge.go @@ -2,8 +2,8 @@ package model // ChallengeInfoResp ... type ChallengeInfoResp struct { - Result []interface{} `json:"result"` - Status int `json:"status"` - CommandNum bool `json:"commandNum"` - TimeStamp int64 `json:"timeStamp"` + Result []any `json:"result"` + Status int `json:"status"` + CommandNum bool `json:"commandNum"` + TimeStamp int64 `json:"timeStamp"` } diff --git a/model/download.go b/model/download.go index ba32701..a21984b 100644 --- a/model/download.go +++ b/model/download.go @@ -21,7 +21,7 @@ type AdditionalRes struct { // AdditionalResp ... type AdditionalResp struct { ResponseData []AdditionalRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` + ReleaseInfo []any `json:"release_info"` StatusCode int `json:"status_code"` } @@ -42,21 +42,21 @@ type BatchRes struct { // BatchResp ... type BatchResp struct { - ResponseData []BatchRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData []BatchRes `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // UpdateReq ... type UpdateReq struct { - Module string `json:"module"` - TargetOs string `json:"target_os"` - InstallVersion string `json:"install_version"` - TimeStamp int `json:"timeStamp"` - Action string `json:"action"` - PackageList []interface{} `json:"package_list"` - CommandNum string `json:"commandNum"` - ExternalVersion string `json:"external_version"` + Module string `json:"module"` + TargetOs string `json:"target_os"` + InstallVersion string `json:"install_version"` + TimeStamp int `json:"timeStamp"` + Action string `json:"action"` + PackageList []any `json:"package_list"` + CommandNum string `json:"commandNum"` + ExternalVersion string `json:"external_version"` } // UpdateRes ... @@ -68,9 +68,9 @@ type UpdateRes struct { // UpdateResp ... type UpdateResp struct { - ResponseData []UpdateRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData []UpdateRes `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // UrlReq ... @@ -89,14 +89,14 @@ type UrlRes struct { // UrlResp ... type UrlResp struct { - ResponseData UrlRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData UrlRes `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // EventResp ... type EventResp struct { - ResponseData []interface{} `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData []any `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } diff --git a/model/event.go b/model/event.go index 72b85bc..49417ea 100644 --- a/model/event.go +++ b/model/event.go @@ -2,9 +2,9 @@ package model // EventsResp ... type EventsResp struct { - ResponseData EventsRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData EventsRes `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // EventsRes ... diff --git a/model/gdpr.go b/model/gdpr.go index d213d12..aba4095 100644 --- a/model/gdpr.go +++ b/model/gdpr.go @@ -2,9 +2,9 @@ package model // GdprResp ... type GdprResp struct { - ResponseData GdprRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData GdprRes `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // GdprRes ... diff --git a/model/lbonus.go b/model/lbonus.go index ef9c01b..3456a4c 100644 --- a/model/lbonus.go +++ b/model/lbonus.go @@ -63,14 +63,14 @@ type LbClassSystem struct { // LbRes ... type LbRes struct { - Sheets []interface{} `json:"sheets"` + Sheets []any `json:"sheets"` CalendarInfo CalendarInfo `json:"calendar_info"` TotalLoginInfo TotalLoginInfo `json:"total_login_info"` - LicenseLbonusList []interface{} `json:"license_lbonus_list"` + LicenseLbonusList []any `json:"license_lbonus_list"` ClassSystem LbClassSystem `json:"class_system"` - StartDashSheets []interface{} `json:"start_dash_sheets"` + StartDashSheets []any `json:"start_dash_sheets"` EffortPoint []EffortPoint `json:"effort_point"` - LimitedEffortBox []interface{} `json:"limited_effort_box"` + LimitedEffortBox []any `json:"limited_effort_box"` MuseumInfo Museum `json:"museum_info"` ServerTimestamp int64 `json:"server_timestamp"` PresentCnt int `json:"present_cnt"` @@ -78,7 +78,7 @@ type LbRes struct { // LbResp ... type LbResp struct { - ResponseData LbRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData LbRes `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } diff --git a/model/live.go b/model/live.go index 45369f5..4bf1634 100644 --- a/model/live.go +++ b/model/live.go @@ -2,9 +2,9 @@ package model // GameOverResp ... type GameOverResp struct { - ResponseData []interface{} `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData []any `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // NormalLiveStatusList ... @@ -42,8 +42,8 @@ type LiveStatusRes struct { NormalLiveStatusList []NormalLiveStatusList `json:"normal_live_status_list"` SpecialLiveStatusList []SpecialLiveStatusList `json:"special_live_status_list"` TrainingLiveStatusList []TrainingLiveStatusList `json:"training_live_status_list"` - MarathonLiveStatusList []interface{} `json:"marathon_live_status_list"` - FreeLiveStatusList []interface{} `json:"free_live_status_list"` + MarathonLiveStatusList []any `json:"marathon_live_status_list"` + FreeLiveStatusList []any `json:"free_live_status_list"` CanResumeLive bool `json:"can_resume_live"` } @@ -88,12 +88,12 @@ type TrainingLiveList struct { // LiveScheduleRes ... type LiveScheduleRes struct { - EventList []interface{} `json:"event_list"` + EventList []any `json:"event_list"` LiveList []LiveList `json:"live_list"` - LimitedBonusList []interface{} `json:"limited_bonus_list"` + LimitedBonusList []any `json:"limited_bonus_list"` LimitedBonusCommonList []LimitedBonusCommonList `json:"limited_bonus_common_list"` RandomLiveList []RandomLiveList `json:"random_live_list"` - FreeLiveList []interface{} `json:"free_live_list"` + FreeLiveList []any `json:"free_live_list"` TrainingLiveList []TrainingLiveList `json:"training_live_list"` } @@ -185,7 +185,7 @@ type PlayRes struct { AvailableLiveResume bool `json:"available_live_resume"` LiveList []PlayLiveList `json:"live_list"` IsMarathonEvent bool `json:"is_marathon_event"` - MarathonEventID interface{} `json:"marathon_event_id"` + MarathonEventID any `json:"marathon_event_id"` NoSkill bool `json:"no_skill"` CanActivateEffect bool `json:"can_activate_effect"` ServerTimestamp int64 `json:"server_timestamp"` @@ -193,9 +193,9 @@ type PlayRes struct { // PlayResp ... type PlayResp struct { - ResponseData PlayRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData PlayRes `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // PlayScoreReq ... @@ -210,28 +210,28 @@ type PlayScoreReq struct { // On ... type On struct { - HasRecord bool `json:"has_record"` - LiveInfo LiveInfo `json:"live_info"` - RandomSeed interface{} `json:"random_seed"` - MaxCombo interface{} `json:"max_combo"` - UpdateDate interface{} `json:"update_date"` - PreciseList interface{} `json:"precise_list"` - DeckInfo interface{} `json:"deck_info"` - TapAdjust interface{} `json:"tap_adjust"` - CanReplay bool `json:"can_replay"` + HasRecord bool `json:"has_record"` + LiveInfo LiveInfo `json:"live_info"` + RandomSeed any `json:"random_seed"` + MaxCombo any `json:"max_combo"` + UpdateDate any `json:"update_date"` + PreciseList any `json:"precise_list"` + DeckInfo any `json:"deck_info"` + TapAdjust any `json:"tap_adjust"` + CanReplay bool `json:"can_replay"` } // Off ... type Off struct { - HasRecord bool `json:"has_record"` - LiveInfo LiveInfo `json:"live_info"` - RandomSeed interface{} `json:"random_seed"` - MaxCombo interface{} `json:"max_combo"` - UpdateDate interface{} `json:"update_date"` - PreciseList interface{} `json:"precise_list"` - DeckInfo interface{} `json:"deck_info"` - TapAdjust interface{} `json:"tap_adjust"` - CanReplay bool `json:"can_replay"` + HasRecord bool `json:"has_record"` + LiveInfo LiveInfo `json:"live_info"` + RandomSeed any `json:"random_seed"` + MaxCombo any `json:"max_combo"` + UpdateDate any `json:"update_date"` + PreciseList any `json:"precise_list"` + DeckInfo any `json:"deck_info"` + TapAdjust any `json:"tap_adjust"` + CanReplay bool `json:"can_replay"` } // PlayScoreRes ... @@ -245,9 +245,9 @@ type PlayScoreRes struct { // PlayScoreResp ... type PlayScoreResp struct { - ResponseData PlayScoreRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData PlayScoreRes `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // PlayRewardReq ... @@ -271,7 +271,7 @@ type PlayRewardReq struct { TimeStamp int `json:"timeStamp"` PreciseScoreLog PreciseScoreLog `json:"precise_score_log"` ScoreCute int `json:"score_cute"` - EventID interface{} `json:"event_id"` + EventID any `json:"event_id"` ScoreCool int `json:"score_cool"` } @@ -372,67 +372,67 @@ type BaseRewardInfo struct { // LiveClear ... type LiveClear struct { - AddType int `json:"add_type"` - Amount int `json:"amount"` - ItemCategoryID int `json:"item_category_id"` - UnitID int `json:"unit_id"` - UnitOwningUserID int64 `json:"unit_owning_user_id"` - IsSupportMember bool `json:"is_support_member"` - Exp int `json:"exp"` - NextExp int `json:"next_exp"` - MaxHp int `json:"max_hp"` - Level int `json:"level"` - MaxLevel int `json:"max_level"` - LevelLimitID int `json:"level_limit_id"` - SkillLevel int `json:"skill_level"` - Rank int `json:"rank"` - Love int `json:"love"` - IsRankMax bool `json:"is_rank_max"` - IsLevelMax bool `json:"is_level_max"` - IsLoveMax bool `json:"is_love_max"` - IsSigned bool `json:"is_signed"` - NewUnitFlag bool `json:"new_unit_flag"` - RewardBoxFlag bool `json:"reward_box_flag"` - UnitSkillExp int `json:"unit_skill_exp"` - DisplayRank int `json:"display_rank"` - UnitRemovableSkillCapacity int `json:"unit_removable_skill_capacity"` - RemovableSkillIds []interface{} `json:"removable_skill_ids"` + AddType int `json:"add_type"` + Amount int `json:"amount"` + ItemCategoryID int `json:"item_category_id"` + UnitID int `json:"unit_id"` + UnitOwningUserID int64 `json:"unit_owning_user_id"` + IsSupportMember bool `json:"is_support_member"` + Exp int `json:"exp"` + NextExp int `json:"next_exp"` + MaxHp int `json:"max_hp"` + Level int `json:"level"` + MaxLevel int `json:"max_level"` + LevelLimitID int `json:"level_limit_id"` + SkillLevel int `json:"skill_level"` + Rank int `json:"rank"` + Love int `json:"love"` + IsRankMax bool `json:"is_rank_max"` + IsLevelMax bool `json:"is_level_max"` + IsLoveMax bool `json:"is_love_max"` + IsSigned bool `json:"is_signed"` + NewUnitFlag bool `json:"new_unit_flag"` + RewardBoxFlag bool `json:"reward_box_flag"` + UnitSkillExp int `json:"unit_skill_exp"` + DisplayRank int `json:"display_rank"` + UnitRemovableSkillCapacity int `json:"unit_removable_skill_capacity"` + RemovableSkillIds []any `json:"removable_skill_ids"` } // LiveRank ... type LiveRank struct { - AddType int `json:"add_type"` - Amount int `json:"amount"` - ItemCategoryID int `json:"item_category_id"` - UnitID int `json:"unit_id"` - UnitOwningUserID int64 `json:"unit_owning_user_id"` - IsSupportMember bool `json:"is_support_member"` - Exp int `json:"exp"` - NextExp int `json:"next_exp"` - MaxHp int `json:"max_hp"` - Level int `json:"level"` - MaxLevel int `json:"max_level"` - LevelLimitID int `json:"level_limit_id"` - SkillLevel int `json:"skill_level"` - Rank int `json:"rank"` - Love int `json:"love"` - IsRankMax bool `json:"is_rank_max"` - IsLevelMax bool `json:"is_level_max"` - IsLoveMax bool `json:"is_love_max"` - IsSigned bool `json:"is_signed"` - NewUnitFlag bool `json:"new_unit_flag"` - RewardBoxFlag bool `json:"reward_box_flag"` - UnitSkillExp int `json:"unit_skill_exp"` - DisplayRank int `json:"display_rank"` - UnitRemovableSkillCapacity int `json:"unit_removable_skill_capacity"` - RemovableSkillIds []interface{} `json:"removable_skill_ids"` + AddType int `json:"add_type"` + Amount int `json:"amount"` + ItemCategoryID int `json:"item_category_id"` + UnitID int `json:"unit_id"` + UnitOwningUserID int64 `json:"unit_owning_user_id"` + IsSupportMember bool `json:"is_support_member"` + Exp int `json:"exp"` + NextExp int `json:"next_exp"` + MaxHp int `json:"max_hp"` + Level int `json:"level"` + MaxLevel int `json:"max_level"` + LevelLimitID int `json:"level_limit_id"` + SkillLevel int `json:"skill_level"` + Rank int `json:"rank"` + Love int `json:"love"` + IsRankMax bool `json:"is_rank_max"` + IsLevelMax bool `json:"is_level_max"` + IsLoveMax bool `json:"is_love_max"` + IsSigned bool `json:"is_signed"` + NewUnitFlag bool `json:"new_unit_flag"` + RewardBoxFlag bool `json:"reward_box_flag"` + UnitSkillExp int `json:"unit_skill_exp"` + DisplayRank int `json:"display_rank"` + UnitRemovableSkillCapacity int `json:"unit_removable_skill_capacity"` + RemovableSkillIds []any `json:"removable_skill_ids"` } // RewardUnitList ... type RewardUnitList struct { - LiveClear []LiveClear `json:"live_clear"` - LiveRank []LiveRank `json:"live_rank"` - LiveCombo []interface{} `json:"live_combo"` + LiveClear []LiveClear `json:"live_clear"` + LiveRank []LiveRank `json:"live_rank"` + LiveCombo []any `json:"live_combo"` } // Rewards ... @@ -536,8 +536,8 @@ type NextLevelInfo struct { // GoalAccompInfo ... type GoalAccompInfo struct { - AchievedIds []interface{} `json:"achieved_ids"` - Rewards []interface{} `json:"rewards"` + AchievedIds []any `json:"achieved_ids"` + Rewards []any `json:"rewards"` } // RewardRankInfo ... @@ -596,25 +596,25 @@ type RewardRes struct { HiScore int `json:"hi_score"` BaseRewardInfo BaseRewardInfo `json:"base_reward_info"` RewardUnitList RewardUnitList `json:"reward_unit_list"` - UnlockedSubscenarioIds []interface{} `json:"unlocked_subscenario_ids"` - UnlockedMultiUnitScenarioIds []interface{} `json:"unlocked_multi_unit_scenario_ids"` + UnlockedSubscenarioIds []any `json:"unlocked_subscenario_ids"` + UnlockedMultiUnitScenarioIds []any `json:"unlocked_multi_unit_scenario_ids"` EffortPoint []EffortPoint `json:"effort_point"` IsEffortPointVisible bool `json:"is_effort_point_visible"` - LimitedEffortBox []interface{} `json:"limited_effort_box"` + LimitedEffortBox []any `json:"limited_effort_box"` UnitList []PlayRewardUnitList `json:"unit_list"` BeforeUserInfo BeforeUserInfo `json:"before_user_info"` AfterUserInfo AfterUserInfo `json:"after_user_info"` NextLevelInfo []NextLevelInfo `json:"next_level_info"` GoalAccompInfo GoalAccompInfo `json:"goal_accomp_info"` - SpecialRewardInfo []interface{} `json:"special_reward_info"` - EventInfo []interface{} `json:"event_info"` - DailyRewardInfo []interface{} `json:"daily_reward_info"` + SpecialRewardInfo []any `json:"special_reward_info"` + EventInfo []any `json:"event_info"` + DailyRewardInfo []any `json:"daily_reward_info"` CanSendFriendRequest bool `json:"can_send_friend_request"` - UsingBuffInfo []interface{} `json:"using_buff_info"` + UsingBuffInfo []any `json:"using_buff_info"` ClassSystem ClassSystem `json:"class_system"` AccomplishedAchievementList []AccomplishedAchievementList `json:"accomplished_achievement_list"` UnaccomplishedAchievementCnt int `json:"unaccomplished_achievement_cnt"` - AddedAchievementList []interface{} `json:"added_achievement_list"` + AddedAchievementList []any `json:"added_achievement_list"` MuseumInfo Museum `json:"museum_info"` UnitSupportList []RewardUnitSupportList `json:"unit_support_list"` ServerTimestamp int `json:"server_timestamp"` @@ -623,9 +623,9 @@ type RewardRes struct { // RewardResp ... type RewardResp struct { - ResponseData RewardRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData RewardRes `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // LiveSeInfoRes ... diff --git a/model/llhelper.go b/model/llhelper.go index 0383c28..bd2e951 100644 --- a/model/llhelper.go +++ b/model/llhelper.go @@ -2,10 +2,10 @@ package model // Data ... type Data struct { - Version int `json:"version"` - Team []Team `json:"team"` - Gemstock interface{} `json:"gemstock"` - Submember []interface{} `json:"submember"` + Version int `json:"version"` + Team []Team `json:"team"` + Gemstock any `json:"gemstock"` + Submember []any `json:"submember"` } // Accessory ... diff --git a/model/login.go b/model/login.go index 41b7a25..074c406 100644 --- a/model/login.go +++ b/model/login.go @@ -13,7 +13,7 @@ type LoginRes struct { // LoginResp ... type LoginResp struct { - ResponseData LoginRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData LoginRes `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } diff --git a/model/marathon.go b/model/marathon.go index 2c72d4b..3d11058 100644 --- a/model/marathon.go +++ b/model/marathon.go @@ -2,8 +2,8 @@ package model // MarathonInfoResp ... type MarathonInfoResp struct { - Result []interface{} `json:"result"` - Status int `json:"status"` - CommandNum bool `json:"commandNum"` - TimeStamp int64 `json:"timeStamp"` + Result []any `json:"result"` + Status int `json:"status"` + CommandNum bool `json:"commandNum"` + TimeStamp int64 `json:"timeStamp"` } diff --git a/model/multiunit.go b/model/multiunit.go index 1faf5ed..f9d9bc0 100644 --- a/model/multiunit.go +++ b/model/multiunit.go @@ -19,7 +19,7 @@ type MultiUnitScenarioStatusList struct { // MultiUnitScenarioStatusRes ... type MultiUnitScenarioStatusRes struct { MultiUnitScenarioStatusList []MultiUnitScenarioStatusList `json:"multi_unit_scenario_status_list"` - UnlockedMultiUnitScenarioIds []interface{} `json:"unlocked_multi_unit_scenario_ids"` + UnlockedMultiUnitScenarioIds []any `json:"unlocked_multi_unit_scenario_ids"` } // MultiUnitScenarioStatusResp ... @@ -33,7 +33,7 @@ type MultiUnitScenarioStatusResp struct { // MultiUnitStartUpResp ... type MultiUnitStartUpResp struct { ResponseData MultiUnitStartUpRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` + ReleaseInfo []any `json:"release_info"` StatusCode int `json:"status_code"` } diff --git a/model/museum.go b/model/museum.go index 10f642f..6db77cc 100644 --- a/model/museum.go +++ b/model/museum.go @@ -2,9 +2,9 @@ package model // MuseumResp ... type MuseumResp struct { - ResponseData MuseumRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData MuseumRes `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // MuseumParameter ... diff --git a/model/navigation.go b/model/navigation.go index 25d0806..366c099 100644 --- a/model/navigation.go +++ b/model/navigation.go @@ -2,7 +2,7 @@ package model // SpecialCutinRes ... type SpecialCutinRes struct { - SpecialCutinList []interface{} `json:"special_cutin_list"` + SpecialCutinList []any `json:"special_cutin_list"` } // SpecialCutinResp ... diff --git a/model/notice.go b/model/notice.go index 25b3914..7e56681 100644 --- a/model/notice.go +++ b/model/notice.go @@ -3,50 +3,50 @@ package model // NoticeFriendVarietyResp ... type NoticeFriendVarietyResp struct { ResponseData NoticeFriendVarietyRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` + ReleaseInfo []any `json:"release_info"` StatusCode int `json:"status_code"` } // NoticeFriendVarietyRes ... type NoticeFriendVarietyRes struct { - ItemCount int `json:"item_count"` - NoticeList []interface{} `json:"notice_list"` - ServerTimestamp int64 `json:"server_timestamp"` + ItemCount int `json:"item_count"` + NoticeList []any `json:"notice_list"` + ServerTimestamp int64 `json:"server_timestamp"` } // NoticeFriendGreetingResp ... type NoticeFriendGreetingResp struct { ResponseData NoticeFriendGreetingRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` + ReleaseInfo []any `json:"release_info"` StatusCode int `json:"status_code"` } // NoticeFriendGreetingRes ... type NoticeFriendGreetingRes struct { - NextId int `json:"next_id"` - NoticeList []interface{} `json:"notice_list"` - ServerTimestamp int64 `json:"server_timestamp"` + NextId int `json:"next_id"` + NoticeList []any `json:"notice_list"` + ServerTimestamp int64 `json:"server_timestamp"` } // NoticeUserGreetingResp ... type NoticeUserGreetingResp struct { ResponseData NoticeUserGreetingRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` + ReleaseInfo []any `json:"release_info"` StatusCode int `json:"status_code"` } // NoticeUserGreetingRes ... type NoticeUserGreetingRes struct { - ItemCount int `json:"item_count"` - HasNext bool `json:"has_next"` - NoticeList []interface{} `json:"notice_list"` - ServerTimestamp int64 `json:"server_timestamp"` + ItemCount int `json:"item_count"` + HasNext bool `json:"has_next"` + NoticeList []any `json:"notice_list"` + ServerTimestamp int64 `json:"server_timestamp"` } // NoticeMarqueeRes ... type NoticeMarqueeRes struct { - ItemCount int `json:"item_count"` - MarqueeList []interface{} `json:"marquee_list"` + ItemCount int `json:"item_count"` + MarqueeList []any `json:"marquee_list"` } // NoticeMarqueeResp ... diff --git a/model/payment.go b/model/payment.go index 5fe3005..d7cd36c 100644 --- a/model/payment.go +++ b/model/payment.go @@ -7,10 +7,10 @@ type RestrictionInfo struct { // UnderAgeInfo ... type UnderAgeInfo struct { - BirthSet bool `json:"birth_set"` - HasLimit bool `json:"has_limit"` - LimitAmount interface{} `json:"limit_amount"` - MonthUsed int `json:"month_used"` + BirthSet bool `json:"birth_set"` + HasLimit bool `json:"has_limit"` + LimitAmount any `json:"limit_amount"` + MonthUsed int `json:"month_used"` } // SnsProductItemList ... @@ -137,18 +137,18 @@ type ProductListResp struct { // ProductResp ... type ProductResp struct { - ResponseData ProductRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData ProductRes `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // ProductRes ... type ProductRes struct { RestrictionInfo RestrictionInfo `json:"restriction_info"` UnderAgeInfo UnderAgeInfo `json:"under_age_info"` - SnsProductList []interface{} `json:"sns_product_list"` - ProductList []interface{} `json:"product_list"` - SubscriptionList []interface{} `json:"subscription_list"` + SnsProductList []any `json:"sns_product_list"` + ProductList []any `json:"product_list"` + SubscriptionList []any `json:"subscription_list"` ShowPointShop bool `json:"show_point_shop"` ServerTimestamp int64 `json:"server_timestamp"` } diff --git a/model/personalnotice.go b/model/personalnotice.go index b35af1d..9c22c6d 100644 --- a/model/personalnotice.go +++ b/model/personalnotice.go @@ -3,7 +3,7 @@ package model // PersonalNoticeResp ... type PersonalNoticeResp struct { ResponseData PersonalNoticeRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` + ReleaseInfo []any `json:"release_info"` StatusCode int `json:"status_code"` } diff --git a/model/profile.go b/model/profile.go index 99a8ed6..648ca81 100644 --- a/model/profile.go +++ b/model/profile.go @@ -2,7 +2,7 @@ package model // AwardSetResp ... type ProfileRegisterResp struct { - ResponseData []interface{} `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData []any `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } diff --git a/model/scenario.go b/model/scenario.go index 6b5540d..9e55a56 100644 --- a/model/scenario.go +++ b/model/scenario.go @@ -28,7 +28,7 @@ type SubscenarioStatusList struct { // SubscenarioStatusRes ... type SubscenarioStatusRes struct { SubscenarioStatusList []SubscenarioStatusList `json:"subscenario_status_list"` - UnlockedSubscenarioIds []interface{} `json:"unlocked_subscenario_ids"` + UnlockedSubscenarioIds []any `json:"unlocked_subscenario_ids"` } // SubscenarioStatusResp ... @@ -75,9 +75,9 @@ type EventScenarioStatusResp struct { // ScenarioResp ... type ScenarioResp struct { - ResponseData ScenarioRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData ScenarioRes `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // ScenarioRes ... diff --git a/model/subscenario.go b/model/subscenario.go index e4d8249..da7488d 100644 --- a/model/subscenario.go +++ b/model/subscenario.go @@ -3,7 +3,7 @@ package model // SubScenarioResp ... type SubScenarioResp struct { ResponseData SubScenarioRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` + ReleaseInfo []any `json:"release_info"` StatusCode int `json:"status_code"` } diff --git a/model/tools.go b/model/tools.go index 156fa61..089720d 100644 --- a/model/tools.go +++ b/model/tools.go @@ -76,10 +76,10 @@ type DifficultyResp struct { // LoveResp ... type LoveResp struct { - Result []interface{} `json:"result"` - Status int `json:"status"` - CommandNum bool `json:"commandNum"` - TimeStamp int64 `json:"timeStamp"` + Result []any `json:"result"` + Status int `json:"status"` + CommandNum bool `json:"commandNum"` + TimeStamp int64 `json:"timeStamp"` } // AccessoryInfo ... diff --git a/model/topinfo.go b/model/topinfo.go index 3ed52e3..0f4935b 100644 --- a/model/topinfo.go +++ b/model/topinfo.go @@ -2,10 +2,10 @@ package model // TopInfoLicenseInfo ... type TopInfoLicenseInfo struct { - LicenseList []interface{} `json:"license_list"` - LicensedInfo []interface{} `json:"licensed_info"` - ExpiredInfo []interface{} `json:"expired_info"` - BadgeFlag bool `json:"badge_flag"` + LicenseList []any `json:"license_list"` + LicensedInfo []any `json:"licensed_info"` + ExpiredInfo []any `json:"expired_info"` + BadgeFlag bool `json:"badge_flag"` } // TopInfoRes ... @@ -24,7 +24,7 @@ type TopInfoRes struct { FriendsRequestCnt int `json:"friends_request_cnt"` IsTodayBirthday bool `json:"is_today_birthday"` LicenseInfo TopInfoLicenseInfo `json:"license_info"` - UsingBuffInfo []interface{} `json:"using_buff_info"` + UsingBuffInfo []any `json:"using_buff_info"` IsKlabIDTaskFlag bool `json:"is_klab_id_task_flag"` KlabIDTaskCanSync bool `json:"klab_id_task_can_sync"` HasUnreadAnnounce bool `json:"has_unread_announce"` diff --git a/model/tos.go b/model/tos.go index 8346609..d692f90 100644 --- a/model/tos.go +++ b/model/tos.go @@ -2,9 +2,9 @@ package model // TosResp ... type TosResp struct { - ResponseData TosRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData TosRes `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // TosResp ... diff --git a/model/unit.go b/model/unit.go index 69edb9c..a8754b1 100644 --- a/model/unit.go +++ b/model/unit.go @@ -66,9 +66,9 @@ type AccessoryWearData struct { // AccessoryWearResp ... type AccessoryWearResp struct { - ResponseData []interface{} `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData []any `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // SkillEquipReq ... @@ -121,23 +121,23 @@ type SkillEquipList struct { // SkillEquipResp ... type SkillEquipResp struct { - ResponseData []interface{} `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData []any `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // SetDisplayRankResp ... type SetDisplayRankResp struct { - ResponseData []interface{} `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData []any `json:"response_data"` + ReleaseInfo []any `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"` + ResponseData []any `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // Costume ... @@ -270,8 +270,8 @@ type OwningInfo struct { // RemovableSkillRes ... type RemovableSkillRes struct { - OwningInfo []OwningInfo `json:"owning_info"` - EquipmentInfo map[int]interface{} `json:"equipment_info"` + OwningInfo []OwningInfo `json:"owning_info"` + EquipmentInfo map[int]any `json:"equipment_info"` } // RemovableSkillResp ... diff --git a/model/user.go b/model/user.go index 7e017f0..d2b2db2 100644 --- a/model/user.go +++ b/model/user.go @@ -2,15 +2,15 @@ package model // UserNaviResp ... type UserNaviChangeResp struct { - ResponseData []interface{} `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData []any `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // UserNameChangeResp ... type UserNameChangeResp struct { ResponseData UserNameChangeRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` + ReleaseInfo []any `json:"release_info"` StatusCode int `json:"status_code"` } @@ -42,7 +42,7 @@ type UserNaviResp struct { // NotificationResp ... type NotificationResp struct { - ResponseData []interface{} `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData []any `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } diff --git a/model/userinfo.go b/model/userinfo.go index b8250fa..1600e1a 100644 --- a/model/userinfo.go +++ b/model/userinfo.go @@ -2,9 +2,9 @@ package model // UserInfoResp ... type UserInfoResp struct { - ResponseData UserInfoRes `json:"response_data"` - ReleaseInfo []interface{} `json:"release_info"` - StatusCode int `json:"status_code"` + ResponseData UserInfoRes `json:"response_data"` + ReleaseInfo []any `json:"release_info"` + StatusCode int `json:"status_code"` } // UserInfoRes ... diff --git a/sifcap/sifcap.go b/sifcap/sifcap.go index b73aa61..fb4c264 100644 --- a/sifcap/sifcap.go +++ b/sifcap/sifcap.go @@ -116,7 +116,7 @@ var errorsMapMutex sync.Mutex var errors uint // Too bad for perf that a... is evaluated -func Error(t string, s string, a ...interface{}) { +func Error(t string, s string, a ...any) { errorsMapMutex.Lock() errors++ errorsMap[t] = errorsMap[t] + 1 @@ -125,12 +125,12 @@ func Error(t string, s string, a ...interface{}) { fmt.Printf(s, a...) } } -func Info(s string, a ...interface{}) { +func Info(s string, a ...any) { if outputLevel >= 1 { fmt.Printf(s, a...) } } -func Debug(s string, a ...interface{}) { +func Debug(s string, a ...any) { if outputLevel >= 2 { fmt.Printf(s, a...) }