gofmt: Replace interface{} with any

Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
2023-06-20 09:08:42 +08:00
parent 43edc4f346
commit 0d56db2dcb
59 changed files with 601 additions and 601 deletions
+1 -1
View File
@@ -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)
+66 -66
View File
@@ -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)
+1 -1
View File
@@ -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)
+22 -22
View File
@@ -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)
+2 -2
View File
@@ -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)
+2 -2
View File
@@ -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)
+6 -6
View File
@@ -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)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
+2 -2
View File
@@ -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)
}
+5 -5
View File
@@ -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,
}
+16 -16
View File
@@ -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,
}
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -43,7 +43,7 @@ func MuseumInfo(ctx *gin.Context) {
},
ServerTimestamp: time.Now().Unix(),
},
ReleaseInfo: []interface{}{},
ReleaseInfo: []any{},
StatusCode: 200,
}
resp, err := json.Marshal(museumResp)
+6 -6
View File
@@ -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)
+4 -4
View File
@@ -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)
+1 -1
View File
@@ -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)
+32 -32
View File
@@ -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,
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
+10 -10
View File
@@ -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)
+5 -5
View File
@@ -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)
+1 -1
View File
@@ -55,7 +55,7 @@ func UserInfo(ctx *gin.Context) {
},
ServerTimestamp: time.Now().Unix(),
},
ReleaseInfo: []interface{}{},
ReleaseInfo: []any{},
StatusCode: 200,
}
resp, err := json.Marshal(userResp)