Code cleanup

Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
2023-06-17 13:33:39 +08:00
parent b361f12158
commit 43edc4f346
13 changed files with 2133 additions and 1798 deletions
+356
View File
@@ -0,0 +1,356 @@
{
"user_card_training_tree_cell_list": [
{
"cell_id": 0,
"activated_at": 1671437782
},
{
"cell_id": 1,
"activated_at": 1671437782
},
{
"cell_id": 2,
"activated_at": 1671437782
},
{
"cell_id": 3,
"activated_at": 1671437782
},
{
"cell_id": 4,
"activated_at": 1671437782
},
{
"cell_id": 5,
"activated_at": 1671437782
},
{
"cell_id": 6,
"activated_at": 1671437782
},
{
"cell_id": 7,
"activated_at": 1671437782
},
{
"cell_id": 8,
"activated_at": 1671437782
},
{
"cell_id": 9,
"activated_at": 1671437782
},
{
"cell_id": 10,
"activated_at": 1671437782
},
{
"cell_id": 11,
"activated_at": 1671437782
},
{
"cell_id": 12,
"activated_at": 1671437782
},
{
"cell_id": 13,
"activated_at": 1671437782
},
{
"cell_id": 14,
"activated_at": 1671437782
},
{
"cell_id": 15,
"activated_at": 1671437782
},
{
"cell_id": 16,
"activated_at": 1671437782
},
{
"cell_id": 17,
"activated_at": 1671437782
},
{
"cell_id": 18,
"activated_at": 1671437782
},
{
"cell_id": 19,
"activated_at": 1671438125
},
{
"cell_id": 20,
"activated_at": 1671438125
},
{
"cell_id": 21,
"activated_at": 1671438125
},
{
"cell_id": 22,
"activated_at": 1671438125
},
{
"cell_id": 23,
"activated_at": 1671438125
},
{
"cell_id": 24,
"activated_at": 1671438125
},
{
"cell_id": 25,
"activated_at": 1671438125
},
{
"cell_id": 26,
"activated_at": 1671438125
},
{
"cell_id": 27,
"activated_at": 1671438125
},
{
"cell_id": 28,
"activated_at": 1671965468
},
{
"cell_id": 29,
"activated_at": 1671965468
},
{
"cell_id": 30,
"activated_at": 1671965468
},
{
"cell_id": 31,
"activated_at": 1671965468
},
{
"cell_id": 32,
"activated_at": 1671965468
},
{
"cell_id": 33,
"activated_at": 1671965468
},
{
"cell_id": 34,
"activated_at": 1671437833
},
{
"cell_id": 35,
"activated_at": 1671437833
},
{
"cell_id": 36,
"activated_at": 1671437833
},
{
"cell_id": 37,
"activated_at": 1671437833
},
{
"cell_id": 38,
"activated_at": 1671437833
},
{
"cell_id": 39,
"activated_at": 1671437838
},
{
"cell_id": 40,
"activated_at": 1671437838
},
{
"cell_id": 41,
"activated_at": 1671437838
},
{
"cell_id": 42,
"activated_at": 1671437838
},
{
"cell_id": 43,
"activated_at": 1671437827
},
{
"cell_id": 44,
"activated_at": 1671437827
},
{
"cell_id": 45,
"activated_at": 1671437827
},
{
"cell_id": 46,
"activated_at": 1671437827
},
{
"cell_id": 47,
"activated_at": 1671437822
},
{
"cell_id": 48,
"activated_at": 1671437822
},
{
"cell_id": 49,
"activated_at": 1671437822
},
{
"cell_id": 50,
"activated_at": 1671437886
},
{
"cell_id": 51,
"activated_at": 1671437810
},
{
"cell_id": 52,
"activated_at": 1671437810
},
{
"cell_id": 53,
"activated_at": 1671437810
},
{
"cell_id": 54,
"activated_at": 1671437810
},
{
"cell_id": 55,
"activated_at": 1671437810
},
{
"cell_id": 56,
"activated_at": 1671437815
},
{
"cell_id": 57,
"activated_at": 1671437815
},
{
"cell_id": 58,
"activated_at": 1671437815
},
{
"cell_id": 59,
"activated_at": 1671437815
},
{
"cell_id": 60,
"activated_at": 1671437782
},
{
"cell_id": 61,
"activated_at": 1671437805
},
{
"cell_id": 62,
"activated_at": 1671438125
},
{
"cell_id": 63,
"activated_at": 1671438125
},
{
"cell_id": 64,
"activated_at": 1671438125
},
{
"cell_id": 65,
"activated_at": 1671438125
},
{
"cell_id": 66,
"activated_at": 1671438125
},
{
"cell_id": 67,
"activated_at": 1671438125
},
{
"cell_id": 68,
"activated_at": 1671438125
},
{
"cell_id": 69,
"activated_at": 1671438125
},
{
"cell_id": 70,
"activated_at": 1671438125
},
{
"cell_id": 71,
"activated_at": 1671438125
},
{
"cell_id": 72,
"activated_at": 1671438125
},
{
"cell_id": 73,
"activated_at": 1671438125
},
{
"cell_id": 74,
"activated_at": 1671438125
},
{
"cell_id": 75,
"activated_at": 1671438125
},
{
"cell_id": 76,
"activated_at": 1671965468
},
{
"cell_id": 77,
"activated_at": 1671965468
},
{
"cell_id": 78,
"activated_at": 1671965468
},
{
"cell_id": 79,
"activated_at": 1671965468
},
{
"cell_id": 80,
"activated_at": 1671965468
},
{
"cell_id": 81,
"activated_at": 1671965468
},
{
"cell_id": 82,
"activated_at": 1671965468
},
{
"cell_id": 83,
"activated_at": 1671965468
},
{
"cell_id": 84,
"activated_at": 1671965468
},
{
"cell_id": 85,
"activated_at": 1671965468
},
{
"cell_id": 86,
"activated_at": 1671965468
},
{
"cell_id": 87,
"activated_at": 1671965468
}
]
}
+1 -223
View File
@@ -66,229 +66,7 @@
"user_lesson_deck_by_id": [], "user_lesson_deck_by_id": [],
"user_live_mv_deck_by_id": [], "user_live_mv_deck_by_id": [],
"user_live_mv_deck_custom_by_id": [], "user_live_mv_deck_custom_by_id": [],
"user_live_difficulty_by_difficulty_id": [ "user_live_difficulty_by_difficulty_id": [],
12087201,
{
"live_difficulty_id": 12087201,
"max_score": 0,
"max_combo": 0,
"play_count": 0,
"clear_count": 0,
"cancel_count": 0,
"not_cleared_count": 0,
"is_full_combo": false,
"cleared_difficulty_achievement_1": null,
"cleared_difficulty_achievement_2": null,
"cleared_difficulty_achievement_3": null,
"enable_autoplay": false,
"is_autoplay": false,
"is_new": false
},
12037501,
{
"live_difficulty_id": 12037501,
"max_score": 0,
"max_combo": 0,
"play_count": 0,
"clear_count": 0,
"cancel_count": 0,
"not_cleared_count": 0,
"is_full_combo": false,
"cleared_difficulty_achievement_1": null,
"cleared_difficulty_achievement_2": null,
"cleared_difficulty_achievement_3": null,
"enable_autoplay": false,
"is_autoplay": false,
"is_new": false
},
22087201,
{
"live_difficulty_id": 22087201,
"max_score": 6362469,
"max_combo": 116,
"play_count": 1,
"clear_count": 1,
"cancel_count": 0,
"not_cleared_count": 0,
"is_full_combo": false,
"cleared_difficulty_achievement_1": 1,
"cleared_difficulty_achievement_2": 2,
"cleared_difficulty_achievement_3": 3,
"enable_autoplay": true,
"is_autoplay": true,
"is_new": false
},
12060101,
{
"live_difficulty_id": 12060101,
"max_score": 0,
"max_combo": 0,
"play_count": 0,
"clear_count": 0,
"cancel_count": 0,
"not_cleared_count": 0,
"is_full_combo": false,
"cleared_difficulty_achievement_1": null,
"cleared_difficulty_achievement_2": null,
"cleared_difficulty_achievement_3": null,
"enable_autoplay": false,
"is_autoplay": false,
"is_new": false
},
12087301,
{
"live_difficulty_id": 12087301,
"max_score": 0,
"max_combo": 0,
"play_count": 0,
"clear_count": 0,
"cancel_count": 0,
"not_cleared_count": 0,
"is_full_combo": false,
"cleared_difficulty_achievement_1": null,
"cleared_difficulty_achievement_2": null,
"cleared_difficulty_achievement_3": null,
"enable_autoplay": false,
"is_autoplay": false,
"is_new": false
},
22087301,
{
"live_difficulty_id": 22087301,
"max_score": 9076238,
"max_combo": 167,
"play_count": 1,
"clear_count": 1,
"cancel_count": 0,
"not_cleared_count": 0,
"is_full_combo": false,
"cleared_difficulty_achievement_1": 1,
"cleared_difficulty_achievement_2": 2,
"cleared_difficulty_achievement_3": 3,
"enable_autoplay": true,
"is_autoplay": true,
"is_new": false
},
12060201,
{
"live_difficulty_id": 12060201,
"max_score": 0,
"max_combo": 0,
"play_count": 0,
"clear_count": 0,
"cancel_count": 0,
"not_cleared_count": 0,
"is_full_combo": false,
"cleared_difficulty_achievement_1": null,
"cleared_difficulty_achievement_2": null,
"cleared_difficulty_achievement_3": null,
"enable_autoplay": false,
"is_autoplay": false,
"is_new": false
},
12087101,
{
"live_difficulty_id": 12087101,
"max_score": 0,
"max_combo": 0,
"play_count": 0,
"clear_count": 0,
"cancel_count": 0,
"not_cleared_count": 0,
"is_full_combo": false,
"cleared_difficulty_achievement_1": null,
"cleared_difficulty_achievement_2": null,
"cleared_difficulty_achievement_3": null,
"enable_autoplay": false,
"is_autoplay": false,
"is_new": false
},
12060301,
{
"live_difficulty_id": 12060301,
"max_score": 0,
"max_combo": 0,
"play_count": 0,
"clear_count": 0,
"cancel_count": 0,
"not_cleared_count": 0,
"is_full_combo": false,
"cleared_difficulty_achievement_1": null,
"cleared_difficulty_achievement_2": null,
"cleared_difficulty_achievement_3": null,
"enable_autoplay": false,
"is_autoplay": false,
"is_new": false
},
12074101,
{
"live_difficulty_id": 12074101,
"max_score": 0,
"max_combo": 0,
"play_count": 0,
"clear_count": 0,
"cancel_count": 0,
"not_cleared_count": 0,
"is_full_combo": false,
"cleared_difficulty_achievement_1": null,
"cleared_difficulty_achievement_2": null,
"cleared_difficulty_achievement_3": null,
"enable_autoplay": false,
"is_autoplay": false,
"is_new": false
},
12074201,
{
"live_difficulty_id": 12074201,
"max_score": 0,
"max_combo": 0,
"play_count": 0,
"clear_count": 0,
"cancel_count": 0,
"not_cleared_count": 0,
"is_full_combo": false,
"cleared_difficulty_achievement_1": null,
"cleared_difficulty_achievement_2": null,
"cleared_difficulty_achievement_3": null,
"enable_autoplay": false,
"is_autoplay": false,
"is_new": false
},
12074301,
{
"live_difficulty_id": 12074301,
"max_score": 0,
"max_combo": 0,
"play_count": 0,
"clear_count": 0,
"cancel_count": 0,
"not_cleared_count": 0,
"is_full_combo": false,
"cleared_difficulty_achievement_1": null,
"cleared_difficulty_achievement_2": null,
"cleared_difficulty_achievement_3": null,
"enable_autoplay": false,
"is_autoplay": false,
"is_new": false
},
22087101,
{
"live_difficulty_id": 22087101,
"max_score": 4699439,
"max_combo": 79,
"play_count": 1,
"clear_count": 1,
"cancel_count": 0,
"not_cleared_count": 0,
"is_full_combo": false,
"cleared_difficulty_achievement_1": 1,
"cleared_difficulty_achievement_2": 2,
"cleared_difficulty_achievement_3": 3,
"enable_autoplay": true,
"is_autoplay": true,
"is_new": false
}
],
"user_story_main_by_story_main_id": [], "user_story_main_by_story_main_id": [],
"user_story_main_selected_by_story_main_cell_id": [], "user_story_main_selected_by_story_main_cell_id": [],
"user_voice_by_voice_id": [], "user_voice_by_voice_id": [],
+58
View File
@@ -0,0 +1,58 @@
{
"name": {
"dot_under_text": "梦路2号机@果果厨"
},
"nickname": {
"dot_under_text": "梦路"
},
"last_login_at": 1686137330,
"rank": 122,
"exp": 416854,
"message": {
"dot_under_text": "B站主播:梦路_YumeMichi"
},
"recommend_card_master_id": 200013001,
"max_friend_num": 0,
"live_point_full_at": 1686107403,
"live_point_broken": 173,
"live_point_subscription_recovery_daily_count": 1,
"live_point_subscription_recovery_daily_reset_at": 1656259200,
"activity_point_count": 0,
"activity_point_reset_at": 1684123200,
"activity_point_payment_recovery_daily_count": 10,
"activity_point_payment_recovery_daily_reset_at": 1683734400,
"game_money": 115779989,
"card_exp": 32464467,
"free_sns_coin": 3900,
"apple_sns_coin": 0,
"google_sns_coin": 0,
"cash": 0,
"subscription_coin": 30,
"birth_date": null,
"birth_month": 10,
"birth_day": 18,
"latest_live_deck_id": 1,
"main_lesson_deck_id": 1,
"favorite_member_id": 1,
"last_live_difficulty_id": 10025301,
"lp_magnification": 1,
"emblem_id": 10400253,
"device_token": "",
"tutorial_phase": 99,
"tutorial_end_at": 1622217482,
"login_days": 451,
"navi_tap_count": 1,
"navi_tap_recover_at": 1685030400,
"is_auto_mode": false,
"max_score_live_difficulty_master_id": 12037401,
"live_max_score": 40553270,
"max_combo_live_difficulty_master_id": 12037401,
"live_max_combo": 301,
"lesson_resume_status": 1,
"accessory_box_additional": 90,
"terms_of_use_version": 0,
"bootstrap_sifid_check_at": 1683178908,
"gdpr_version": 0,
"member_guild_member_master_id": 1,
"member_guild_last_updated_at": 1659485328
}
BIN
View File
Binary file not shown.
+2 -1
View File
@@ -27,7 +27,8 @@ require (
github.com/klauspost/cpuid/v2 v2.2.4 // indirect github.com/klauspost/cpuid/v2 v2.2.4 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect github.com/tidwall/pretty v1.2.1 // indirect
github.com/tidwall/sjson v1.2.5 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
golang.org/x/arch v0.3.0 // indirect golang.org/x/arch v0.3.0 // indirect
golang.org/x/mod v0.8.0 // indirect golang.org/x/mod v0.8.0 // indirect
+5
View File
@@ -390,12 +390,17 @@ github.com/stretchr/testify v1.8.3 h1:RP3t2pwF7cMEbC1dqtB6poj3niw/9gnV4Cjg5oW5gt
github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/syndtr/goleveldb v1.0.0 h1:fBdIW9lB4Iz0n9khmH8w27SJ3QEJ7+IgjPEwGSZiFdE= github.com/syndtr/goleveldb v1.0.0 h1:fBdIW9lB4Iz0n9khmH8w27SJ3QEJ7+IgjPEwGSZiFdE=
github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ= github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ=
github.com/tidwall/gjson v1.14.2/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
github.com/tidwall/gjson v1.14.4 h1:uo0p8EbA09J7RQaflQ1aBRffTR7xedD2bcIVSYxLnkM= github.com/tidwall/gjson v1.14.4 h1:uo0p8EbA09J7RQaflQ1aBRffTR7xedD2bcIVSYxLnkM=
github.com/tidwall/gjson v1.14.4/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= github.com/tidwall/gjson v1.14.4/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs= github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs=
github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4=
github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
github.com/tidwall/sjson v1.2.5 h1:kLy8mja+1c9jlljvWTlSazM7cKDRfJuR/bOJhcY5NcY=
github.com/tidwall/sjson v1.2.5/go.mod h1:Fvgq9kS/6ociJEDnK0Fk1cpYF4FIW6ZF7LAe+6jwd28=
github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI=
github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
+1047
View File
File diff suppressed because it is too large Load Diff
+87
View File
@@ -1,7 +1,13 @@
package handler package handler
import ( import (
"encoding/json"
"fmt"
"honoka-chan/config" "honoka-chan/config"
"honoka-chan/encrypt"
"honoka-chan/model"
"honoka-chan/utils"
"time"
"xorm.io/xorm" "xorm.io/xorm"
) )
@@ -11,6 +17,9 @@ var (
ErrorMsg = `{"code":20001,"message":""}` ErrorMsg = `{"code":20001,"message":""}`
MainEng *xorm.Engine MainEng *xorm.Engine
UserEng *xorm.Engine UserEng *xorm.Engine
// LLAS
sessionKey = "12345678123456781234567812345678"
) )
func init() { func init() {
@@ -34,3 +43,81 @@ func IsSigned(unitId int) bool {
return exists return exists
} }
func SignResp(ep, body, key string) (resp string) {
signBody := fmt.Sprintf("%d,\"%s\",0,%s", time.Now().UnixMilli(), config.MasterVersion, body)
sign := encrypt.HMAC_SHA1_Encrypt([]byte(ep+" "+signBody), []byte(key))
// fmt.Println(sign)
resp = fmt.Sprintf("[%s,\"%s\"]", signBody, sign)
return
}
func GetUserStatus() map[string]interface{} {
var r map[string]interface{}
if err := json.Unmarshal([]byte(utils.ReadAllText("assets/as/userStatus.json")), &r); err != nil {
panic(err)
}
return r
}
func CommonUserStatus() model.AsUserStatus {
return model.AsUserStatus{
Name: model.Name{
DotUnderText: "梦路2号机@果果厨",
},
Nickname: model.Nickname{
DotUnderText: "梦路",
},
LastLoginAt: time.Now().Unix(),
Rank: 122,
Exp: 416263,
Message: model.Message{
DotUnderText: "B站主播:梦路_YumeMichi",
},
RecommendCardMasterID: 200013001,
MaxFriendNum: 0,
LivePointFullAt: 1684158189,
LivePointBroken: 150,
LivePointSubscriptionRecoveryDailyCount: 1,
LivePointSubscriptionRecoveryDailyResetAt: 1656259200,
ActivityPointCount: 0,
ActivityPointResetAt: 1684123200,
ActivityPointPaymentRecoveryDailyCount: 10,
ActivityPointPaymentRecoveryDailyResetAt: 1683734400,
GameMoney: 115665089,
CardExp: 32316167,
FreeSnsCoin: 280,
AppleSnsCoin: 0,
GoogleSnsCoin: 0,
Cash: 0,
SubscriptionCoin: 30,
BirthDate: nil,
BirthMonth: 10,
BirthDay: 18,
LatestLiveDeckID: 1,
MainLessonDeckID: 1,
FavoriteMemberID: 1,
LastLiveDifficultyID: 12092302,
LpMagnification: 1,
EmblemID: 13100608,
DeviceToken: "",
TutorialPhase: 99,
TutorialEndAt: 1622217482,
LoginDays: 446,
NaviTapCount: 2,
NaviTapRecoverAt: 1684771200,
IsAutoMode: false,
MaxScoreLiveDifficultyMasterID: 12037401,
LiveMaxScore: 40553270,
MaxComboLiveDifficultyMasterID: 12037401,
LiveMaxCombo: 301,
LessonResumeStatus: 1,
AccessoryBoxAdditional: 90,
TermsOfUseVersion: 0,
BootstrapSifidCheckAt: 1683178908,
GdprVersion: 0,
MemberGuildMemberMasterID: 1,
MemberGuildLastUpdatedAt: 1659485328,
}
}
+544
View File
@@ -0,0 +1,544 @@
package model
// AsLoginRes ...
type AsLoginRes struct {
SessionKey string `json:"session_key"`
UserModel UserModel `json:"user_model"`
IsPlatformServiceLinked bool `json:"is_platform_service_linked"`
LastTimestamp int64 `json:"last_timestamp"`
Cautions []interface{} `json:"cautions"`
ShowHomeCaution bool `json:"show_home_caution"`
LiveResume interface{} `json:"live_resume"`
FromEea bool `json:"from_eea"`
GdprConsentedInfo GdprConsentedInfo `json:"gdpr_consented_info"`
UserID int `json:"user_id"`
IsUnderAge int `json:"is_under_age"`
AreaID int `json:"area_id"`
AuthCount int `json:"auth_count"`
MemberLovePanels []MemberLovePanels `json:"member_love_panels"`
CheckMaintenance bool `json:"check_maintenance"`
ReproInfo ReproInfo `json:"repro_info"`
}
// 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"`
}
// Name ...
type Name struct {
DotUnderText string `json:"dot_under_text"`
}
// Nickname ...
type Nickname struct {
DotUnderText string `json:"dot_under_text"`
}
// Message ...
type Message struct {
DotUnderText string `json:"dot_under_text"`
}
// 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"`
}
// GdprConsentedInfo ...
type GdprConsentedInfo struct {
HasConsentedAdPurposeOfUse bool `json:"has_consented_ad_purpose_of_use"`
HasConsentedCrashReport bool `json:"has_consented_crash_report"`
}
// MemberLovePanels ...
type MemberLovePanels struct {
MemberID int `json:"member_id"`
MemberLovePanelCellIds []int `json:"member_love_panel_cell_ids"`
}
// ReproInfo ...
type ReproInfo struct {
GroupNo int `json:"group_no"`
}
// AsCardInfo ...
type AsCardInfo struct {
CardMasterID int `json:"card_master_id"`
Level int `json:"level"`
Exp int `json:"exp"`
LovePoint int `json:"love_point"`
IsFavorite bool `json:"is_favorite"`
IsAwakening bool `json:"is_awakening"`
IsAwakeningImage bool `json:"is_awakening_image"`
IsAllTrainingActivated bool `json:"is_all_training_activated"`
TrainingActivatedCellCount int `json:"training_activated_cell_count"`
MaxFreePassiveSkill int `json:"max_free_passive_skill"`
Grade int `json:"grade"`
TrainingLife int `json:"training_life"`
TrainingAttack int `json:"training_attack"`
TrainingDexterity int `json:"training_dexterity"`
ActiveSkillLevel int `json:"active_skill_level"`
PassiveSkillALevel int `json:"passive_skill_a_level"`
PassiveSkillBLevel int `json:"passive_skill_b_level"`
PassiveSkillCLevel int `json:"passive_skill_c_level"`
AdditionalPassiveSkill1ID int `json:"additional_passive_skill_1_id"`
AdditionalPassiveSkill2ID int `json:"additional_passive_skill_2_id"`
AdditionalPassiveSkill3ID int `json:"additional_passive_skill_3_id"`
AdditionalPassiveSkill4ID int `json:"additional_passive_skill_4_id"`
AcquiredAt int64 `json:"acquired_at"`
IsNew bool `json:"is_new"`
}
// AsSuitInfo ...
type AsSuitInfo struct {
SuitMasterID int `json:"suit_master_id"`
IsNew bool `json:"is_new"`
}
// 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"`
}
// AsEmblemId ...
type AsEmblemId struct {
EmblemMasterID int `json:"emblem_master_id"`
IsNew bool `json:"is_new"`
}
// 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"`
}
// AsMainStoryInfo ...
type AsMainStoryInfo struct {
StoryMainMasterID int `json:"story_main_master_id"`
}
// AsNaviVoiceInfo ...
type AsNaviVoiceInfo struct {
NaviVoiceMasterID int `json:"navi_voice_master_id"`
IsNew bool `json:"is_new"`
}
// AsCustomBackgroundInfo ...
type AsCustomBackgroundInfo struct {
CustomBackgroundMasterID int `json:"custom_background_master_id"`
IsNew bool `json:"is_new"`
}
// AsStorySideInfo ...
type AsStorySideInfo struct {
StorySideMasterID int `json:"story_side_master_id"`
IsNew bool `json:"is_new"`
AcquiredAt int64 `json:"acquired_at"`
}
// AsStoryMemberInfo ...
type AsStoryMemberInfo struct {
StoryMemberMasterID int `json:"story_member_master_id"`
IsNew bool `json:"is_new"`
AcquiredAt int64 `json:"acquired_at"`
}
// AsStoryEventInfo ...
type AsStoryEventInfo struct {
StoryEventID int `json:"story_event_id"`
}
// AsMissionRes ...
type AsMissionRes struct {
ID int `xorm:"id"`
Count int `xorm:"mission_clear_condition_count"`
}
// AsFreeMissionInfo ...
type AsFreeMissionInfo struct {
MissionMID int `json:"mission_m_id"`
IsNew bool `json:"is_new"`
MissionCount int `json:"mission_count"`
IsCleared bool `json:"is_cleared"`
IsReceivedReward bool `json:"is_received_reward"`
NewExpiredAt int64 `json:"new_expired_at"`
}
// AsDailyMissionInfo ...
type AsDailyMissionInfo struct {
MissionMID int `json:"mission_m_id"`
IsNew bool `json:"is_new"`
MissionStartCount int `json:"mission_start_count"`
MissionCount int `json:"mission_count"`
IsCleared bool `json:"is_cleared"`
IsReceivedReward bool `json:"is_received_reward"`
ClearedExpiredAt int64 `json:"cleared_expired_at"`
}
// AsWeeklyMissionInfo ...
type AsWeeklyMissionInfo struct {
MissionMID int `json:"mission_m_id"`
IsNew bool `json:"is_new"`
MissionStartCount int `json:"mission_start_count"`
MissionCount int `json:"mission_count"`
IsCleared bool `json:"is_cleared"`
IsReceivedReward bool `json:"is_received_reward"`
ClearedExpiredAt int64 `json:"cleared_expired_at"`
NewExpiredAt int64 `json:"new_expired_at"`
}
// AsMemberLovePanelInfo ...
type AsMemberLovePanelInfo struct {
MemberID int `json:"member_id"`
MemberLovePanelCellIds []int `json:"member_love_panel_cell_ids"`
}
// AsCardRes ...
type AsCardRes struct {
ID int `xorm:"id"`
CardRarityType int `xorm:"card_rarity_type"`
MaxPassiveSkillSlot int `xorm:"max_passive_skill_slot"`
}
// AsSaveDeckReq ...
type AsSaveDeckReq struct {
DeckID int `json:"deck_id"`
CardWithSuit []int `json:"card_with_suit"`
SquadDict []interface{} `json:"squad_dict"`
}
// AsDeckSquadDict ...
type AsDeckSquadDict struct {
CardMasterIds []int `json:"card_master_ids"`
UserAccessoryIds []int64 `json:"user_accessory_ids"`
}
// AsDeckInfo ...
type AsDeckInfo struct {
UserLiveDeckID int `json:"user_live_deck_id"`
Name AsDeckName `json:"name"`
CardMasterID1 int `json:"card_master_id_1"`
CardMasterID2 int `json:"card_master_id_2"`
CardMasterID3 int `json:"card_master_id_3"`
CardMasterID4 int `json:"card_master_id_4"`
CardMasterID5 int `json:"card_master_id_5"`
CardMasterID6 int `json:"card_master_id_6"`
CardMasterID7 int `json:"card_master_id_7"`
CardMasterID8 int `json:"card_master_id_8"`
CardMasterID9 int `json:"card_master_id_9"`
SuitMasterID1 int `json:"suit_master_id_1"`
SuitMasterID2 int `json:"suit_master_id_2"`
SuitMasterID3 int `json:"suit_master_id_3"`
SuitMasterID4 int `json:"suit_master_id_4"`
SuitMasterID5 int `json:"suit_master_id_5"`
SuitMasterID6 int `json:"suit_master_id_6"`
SuitMasterID7 int `json:"suit_master_id_7"`
SuitMasterID8 int `json:"suit_master_id_8"`
SuitMasterID9 int `json:"suit_master_id_9"`
}
// AsDeckName ...
type AsDeckName struct {
DotUnderText string `json:"dot_under_text"`
}
// AsPartyInfo ...
type AsPartyInfo struct {
PartyID int `json:"party_id"`
UserLiveDeckID int `json:"user_live_deck_id"`
Name AsPartyName `json:"name"`
IconMasterID int `json:"icon_master_id"`
CardMasterID1 int `json:"card_master_id_1"`
CardMasterID2 int `json:"card_master_id_2"`
CardMasterID3 int `json:"card_master_id_3"`
UserAccessoryID1 int64 `json:"user_accessory_id_1"`
UserAccessoryID2 int64 `json:"user_accessory_id_2"`
UserAccessoryID3 int64 `json:"user_accessory_id_3"`
}
// AsPartyName ...
type AsPartyName struct {
DotUnderText string `json:"dot_under_text"`
}
// AsLiveStartReq ...
type AsLiveStartReq struct {
LiveDifficultyID int `json:"live_difficulty_id"`
DeckID int `json:"deck_id"`
PartnerUserID int `json:"partner_user_id"`
PartnerCardMasterID int `json:"partner_card_master_id"`
LpMagnification int `json:"lp_magnification"`
IsAutoPlay bool `json:"is_auto_play"`
IsReferenceBook bool `json:"is_reference_book"`
}
// AsLivePartnerInfo ...
type AsLivePartnerInfo struct {
UserID int `json:"user_id"`
Name PartnerName `json:"name"`
Rank int `json:"rank"`
LastPlayedAt int64 `json:"last_played_at"`
RecommendCardMasterID int `json:"recommend_card_master_id"`
RecommendCardLevel int `json:"recommend_card_level"`
IsRecommendCardImageAwaken bool `json:"is_recommend_card_image_awaken"`
IsRecommendCardAllTrainingActivated bool `json:"is_recommend_card_all_training_activated"`
EmblemID int `json:"emblem_id"`
IsNew bool `json:"is_new"`
IntroductionMessage IntroductionMessage `json:"introduction_message"`
FriendApprovedAt interface{} `json:"friend_approved_at"`
RequestStatus int `json:"request_status"`
IsRequestPending bool `json:"is_request_pending"`
}
// PartnerName ...
type PartnerName struct {
DotUnderText string `json:"dot_under_text"`
}
// IntroductionMessage ...
type IntroductionMessage struct {
DotUnderText string `json:"dot_under_text"`
}
// AsLiveResultAchievementStatus ...
type AsLiveResultAchievementStatus struct {
ClearCount int64 `json:"clear_count"`
GotVoltage int64 `json:"got_voltage"`
RemainingStamina int64 `json:"remaining_stamina"`
}
// AsMvpInfo ...
type AsMvpInfo struct {
CardMasterID int64 `json:"card_master_id"`
GetVoltage int64 `json:"get_voltage"`
SkillTriggeredCount int64 `json:"skill_triggered_count"`
AppealCount int64 `json:"appeal_count"`
}
// AsUserCardReq ...
type AsUserCardReq struct {
UserID int64 `json:"user_id"`
CardMasterID int64 `json:"card_master_id"`
}
// AsCardAwakeningReq ...
type AsCardAwakeningReq struct {
CardMasterID int `json:"card_master_id"`
IsAwakeningImage bool `json:"is_awakening_image"`
}
// AsReq ...
type AsReq interface{}
// AsResp ...
type AsResp interface{}
// PackUrlReqBody ...
type PackUrlReqBody struct {
PackNames []string `json:"pack_names"`
}
// PackUrlRespBody ...
type PackUrlRespBody struct {
UrlList []string `json:"url_list"`
}
// LiveSaveDeckReq ...
type LiveSaveDeckReq struct {
LiveMasterID int `json:"live_master_id"`
LiveMvDeckType int `json:"live_mv_deck_type"`
MemberMasterIDByPos []int `json:"member_master_id_by_pos"`
SuitMasterIDByPos []int `json:"suit_master_id_by_pos"`
ViewStatusByPos []int `json:"view_status_by_pos"`
}
// LiveSaveDeckResp ...
type LiveSaveDeckResp struct {
UserModel UserModel `json:"user_model"`
}
// UserMemberInfo ...
type UserMemberInfo struct {
MemberMasterID int `json:"member_master_id"`
CustomBackgroundMasterID int `json:"custom_background_master_id"`
SuitMasterID int `json:"suit_master_id"`
LovePoint int `json:"love_point"`
LovePointLimit int `json:"love_point_limit"`
LoveLevel int `json:"love_level"`
ViewStatus int `json:"view_status"`
IsNew bool `json:"is_new"`
}
// UserMemberByMemberID ...
type UserMemberByMemberID interface{}
// 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"`
}
// UserLiveMvDeckCustomByID ...
type UserLiveMvDeckCustomByID interface{}
// SetThemeRes ...
type SetThemeRes interface{}
// UserCommunicationMemberDetailBadgeByID ...
type UserCommunicationMemberDetailBadgeByID struct {
MemberMasterID int `json:"member_master_id"`
IsStoryMemberBadge bool `json:"is_story_member_badge"`
IsStorySideBadge bool `json:"is_story_side_badge"`
IsVoiceBadge bool `json:"is_voice_badge"`
IsThemeBadge bool `json:"is_theme_badge"`
IsCardBadge bool `json:"is_card_badge"`
IsMusicBadge bool `json:"is_music_badge"`
}
-65
View File
@@ -1,6 +1,5 @@
package model package model
/* ==== SIF START ==== */
// GameOverResp ... // GameOverResp ...
type GameOverResp struct { type GameOverResp struct {
ResponseData []interface{} `json:"response_data"` ResponseData []interface{} `json:"response_data"`
@@ -654,67 +653,3 @@ type LiveIconInfoResp struct {
CommandNum bool `json:"commandNum"` CommandNum bool `json:"commandNum"`
TimeStamp int64 `json:"timeStamp"` TimeStamp int64 `json:"timeStamp"`
} }
/* ==== SIF END ==== */
/* ==== AS START ==== */
// LiveSaveDeckReq ...
type LiveSaveDeckReq struct {
LiveMasterID int `json:"live_master_id"`
LiveMvDeckType int `json:"live_mv_deck_type"`
MemberMasterIDByPos []int `json:"member_master_id_by_pos"`
SuitMasterIDByPos []int `json:"suit_master_id_by_pos"`
ViewStatusByPos []int `json:"view_status_by_pos"`
}
// LiveSaveDeckResp ...
type LiveSaveDeckResp struct {
UserModel UserModel `json:"user_model"`
}
// UserMemberInfo ...
type UserMemberInfo struct {
MemberMasterID int `json:"member_master_id"`
CustomBackgroundMasterID int `json:"custom_background_master_id"`
SuitMasterID int `json:"suit_master_id"`
LovePoint int `json:"love_point"`
LovePointLimit int `json:"love_point_limit"`
LoveLevel int `json:"love_level"`
ViewStatus int `json:"view_status"`
IsNew bool `json:"is_new"`
}
// UserMemberByMemberID ...
type UserMemberByMemberID interface{}
// 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"`
}
// UserLiveMvDeckCustomByID ...
type UserLiveMvDeckCustomByID interface{}
-474
View File
@@ -1,6 +1,5 @@
package model package model
/* ==== SIF START ==== */
// LoginRes ... // LoginRes ...
type LoginRes struct { type LoginRes struct {
AuthorizeToken string `json:"authorize_token"` AuthorizeToken string `json:"authorize_token"`
@@ -18,476 +17,3 @@ type LoginResp struct {
ReleaseInfo []interface{} `json:"release_info"` ReleaseInfo []interface{} `json:"release_info"`
StatusCode int `json:"status_code"` StatusCode int `json:"status_code"`
} }
/* ==== SIF END ==== */
/* ==== AS START ==== */
// AsLoginRes ...
type AsLoginRes struct {
SessionKey string `json:"session_key"`
UserModel UserModel `json:"user_model"`
IsPlatformServiceLinked bool `json:"is_platform_service_linked"`
LastTimestamp int64 `json:"last_timestamp"`
Cautions []interface{} `json:"cautions"`
ShowHomeCaution bool `json:"show_home_caution"`
LiveResume interface{} `json:"live_resume"`
FromEea bool `json:"from_eea"`
GdprConsentedInfo GdprConsentedInfo `json:"gdpr_consented_info"`
UserID int `json:"user_id"`
IsUnderAge int `json:"is_under_age"`
AreaID int `json:"area_id"`
AuthCount int `json:"auth_count"`
MemberLovePanels []MemberLovePanels `json:"member_love_panels"`
CheckMaintenance bool `json:"check_maintenance"`
ReproInfo ReproInfo `json:"repro_info"`
}
// 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"`
}
// Name ...
type Name struct {
DotUnderText string `json:"dot_under_text"`
}
// Nickname ...
type Nickname struct {
DotUnderText string `json:"dot_under_text"`
}
// Message ...
type Message struct {
DotUnderText string `json:"dot_under_text"`
}
// 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"`
}
// GdprConsentedInfo ...
type GdprConsentedInfo struct {
HasConsentedAdPurposeOfUse bool `json:"has_consented_ad_purpose_of_use"`
HasConsentedCrashReport bool `json:"has_consented_crash_report"`
}
// MemberLovePanels ...
type MemberLovePanels struct {
MemberID int `json:"member_id"`
MemberLovePanelCellIds []int `json:"member_love_panel_cell_ids"`
}
// ReproInfo ...
type ReproInfo struct {
GroupNo int `json:"group_no"`
}
// AsCardInfo ...
type AsCardInfo struct {
CardMasterID int `json:"card_master_id"`
Level int `json:"level"`
Exp int `json:"exp"`
LovePoint int `json:"love_point"`
IsFavorite bool `json:"is_favorite"`
IsAwakening bool `json:"is_awakening"`
IsAwakeningImage bool `json:"is_awakening_image"`
IsAllTrainingActivated bool `json:"is_all_training_activated"`
TrainingActivatedCellCount int `json:"training_activated_cell_count"`
MaxFreePassiveSkill int `json:"max_free_passive_skill"`
Grade int `json:"grade"`
TrainingLife int `json:"training_life"`
TrainingAttack int `json:"training_attack"`
TrainingDexterity int `json:"training_dexterity"`
ActiveSkillLevel int `json:"active_skill_level"`
PassiveSkillALevel int `json:"passive_skill_a_level"`
PassiveSkillBLevel int `json:"passive_skill_b_level"`
PassiveSkillCLevel int `json:"passive_skill_c_level"`
AdditionalPassiveSkill1ID int `json:"additional_passive_skill_1_id"`
AdditionalPassiveSkill2ID int `json:"additional_passive_skill_2_id"`
AdditionalPassiveSkill3ID int `json:"additional_passive_skill_3_id"`
AdditionalPassiveSkill4ID int `json:"additional_passive_skill_4_id"`
AcquiredAt int64 `json:"acquired_at"`
IsNew bool `json:"is_new"`
}
// AsSuitInfo ...
type AsSuitInfo struct {
SuitMasterID int `json:"suit_master_id"`
IsNew bool `json:"is_new"`
}
// 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"`
}
// AsEmblemId ...
type AsEmblemId struct {
EmblemMasterID int `json:"emblem_master_id"`
IsNew bool `json:"is_new"`
}
// 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"`
}
// AsMainStoryInfo ...
type AsMainStoryInfo struct {
StoryMainMasterID int `json:"story_main_master_id"`
}
// AsNaviVoiceInfo ...
type AsNaviVoiceInfo struct {
NaviVoiceMasterID int `json:"navi_voice_master_id"`
IsNew bool `json:"is_new"`
}
// AsCustomBackgroundInfo ...
type AsCustomBackgroundInfo struct {
CustomBackgroundMasterID int `json:"custom_background_master_id"`
IsNew bool `json:"is_new"`
}
// AsStorySideInfo ...
type AsStorySideInfo struct {
StorySideMasterID int `json:"story_side_master_id"`
IsNew bool `json:"is_new"`
AcquiredAt int64 `json:"acquired_at"`
}
// AsStoryMemberInfo ...
type AsStoryMemberInfo struct {
StoryMemberMasterID int `json:"story_member_master_id"`
IsNew bool `json:"is_new"`
AcquiredAt int64 `json:"acquired_at"`
}
// AsStoryEventInfo ...
type AsStoryEventInfo struct {
StoryEventID int `json:"story_event_id"`
}
// AsMissionRes ...
type AsMissionRes struct {
ID int `xorm:"id"`
Count int `xorm:"mission_clear_condition_count"`
}
// AsFreeMissionInfo ...
type AsFreeMissionInfo struct {
MissionMID int `json:"mission_m_id"`
IsNew bool `json:"is_new"`
MissionCount int `json:"mission_count"`
IsCleared bool `json:"is_cleared"`
IsReceivedReward bool `json:"is_received_reward"`
NewExpiredAt int64 `json:"new_expired_at"`
}
// AsDailyMissionInfo ...
type AsDailyMissionInfo struct {
MissionMID int `json:"mission_m_id"`
IsNew bool `json:"is_new"`
MissionStartCount int `json:"mission_start_count"`
MissionCount int `json:"mission_count"`
IsCleared bool `json:"is_cleared"`
IsReceivedReward bool `json:"is_received_reward"`
ClearedExpiredAt int64 `json:"cleared_expired_at"`
}
// AsWeeklyMissionInfo ...
type AsWeeklyMissionInfo struct {
MissionMID int `json:"mission_m_id"`
IsNew bool `json:"is_new"`
MissionStartCount int `json:"mission_start_count"`
MissionCount int `json:"mission_count"`
IsCleared bool `json:"is_cleared"`
IsReceivedReward bool `json:"is_received_reward"`
ClearedExpiredAt int64 `json:"cleared_expired_at"`
NewExpiredAt int64 `json:"new_expired_at"`
}
// AsMemberLovePanelInfo ...
type AsMemberLovePanelInfo struct {
MemberID int `json:"member_id"`
MemberLovePanelCellIds []int `json:"member_love_panel_cell_ids"`
}
// AsCardRes ...
type AsCardRes struct {
ID int `xorm:"id"`
CardRarityType int `xorm:"card_rarity_type"`
MaxPassiveSkillSlot int `xorm:"max_passive_skill_slot"`
}
// AsSaveDeckReq ...
type AsSaveDeckReq struct {
DeckID int `json:"deck_id"`
CardWithSuit []int `json:"card_with_suit"`
SquadDict []interface{} `json:"squad_dict"`
}
// AsDeckSquadDict ...
type AsDeckSquadDict struct {
CardMasterIds []int `json:"card_master_ids"`
UserAccessoryIds []int64 `json:"user_accessory_ids"`
}
// AsDeckInfo ...
type AsDeckInfo struct {
UserLiveDeckID int `json:"user_live_deck_id"`
Name AsDeckName `json:"name"`
CardMasterID1 int `json:"card_master_id_1"`
CardMasterID2 int `json:"card_master_id_2"`
CardMasterID3 int `json:"card_master_id_3"`
CardMasterID4 int `json:"card_master_id_4"`
CardMasterID5 int `json:"card_master_id_5"`
CardMasterID6 int `json:"card_master_id_6"`
CardMasterID7 int `json:"card_master_id_7"`
CardMasterID8 int `json:"card_master_id_8"`
CardMasterID9 int `json:"card_master_id_9"`
SuitMasterID1 int `json:"suit_master_id_1"`
SuitMasterID2 int `json:"suit_master_id_2"`
SuitMasterID3 int `json:"suit_master_id_3"`
SuitMasterID4 int `json:"suit_master_id_4"`
SuitMasterID5 int `json:"suit_master_id_5"`
SuitMasterID6 int `json:"suit_master_id_6"`
SuitMasterID7 int `json:"suit_master_id_7"`
SuitMasterID8 int `json:"suit_master_id_8"`
SuitMasterID9 int `json:"suit_master_id_9"`
}
// AsDeckName ...
type AsDeckName struct {
DotUnderText string `json:"dot_under_text"`
}
// AsPartyInfo ...
type AsPartyInfo struct {
PartyID int `json:"party_id"`
UserLiveDeckID int `json:"user_live_deck_id"`
Name AsPartyName `json:"name"`
IconMasterID int `json:"icon_master_id"`
CardMasterID1 int `json:"card_master_id_1"`
CardMasterID2 int `json:"card_master_id_2"`
CardMasterID3 int `json:"card_master_id_3"`
UserAccessoryID1 int64 `json:"user_accessory_id_1"`
UserAccessoryID2 int64 `json:"user_accessory_id_2"`
UserAccessoryID3 int64 `json:"user_accessory_id_3"`
}
// AsPartyName ...
type AsPartyName struct {
DotUnderText string `json:"dot_under_text"`
}
// AsLiveStartReq ...
type AsLiveStartReq struct {
LiveDifficultyID int `json:"live_difficulty_id"`
DeckID int `json:"deck_id"`
PartnerUserID int `json:"partner_user_id"`
PartnerCardMasterID int `json:"partner_card_master_id"`
LpMagnification int `json:"lp_magnification"`
IsAutoPlay bool `json:"is_auto_play"`
IsReferenceBook bool `json:"is_reference_book"`
}
// AsLivePartnerInfo ...
type AsLivePartnerInfo struct {
UserID int `json:"user_id"`
Name PartnerName `json:"name"`
Rank int `json:"rank"`
LastPlayedAt int64 `json:"last_played_at"`
RecommendCardMasterID int `json:"recommend_card_master_id"`
RecommendCardLevel int `json:"recommend_card_level"`
IsRecommendCardImageAwaken bool `json:"is_recommend_card_image_awaken"`
IsRecommendCardAllTrainingActivated bool `json:"is_recommend_card_all_training_activated"`
EmblemID int `json:"emblem_id"`
IsNew bool `json:"is_new"`
IntroductionMessage IntroductionMessage `json:"introduction_message"`
FriendApprovedAt interface{} `json:"friend_approved_at"`
RequestStatus int `json:"request_status"`
IsRequestPending bool `json:"is_request_pending"`
}
// PartnerName ...
type PartnerName struct {
DotUnderText string `json:"dot_under_text"`
}
// IntroductionMessage ...
type IntroductionMessage struct {
DotUnderText string `json:"dot_under_text"`
}
// AsLiveResultAchievementStatus ...
type AsLiveResultAchievementStatus struct {
ClearCount int64 `json:"clear_count"`
GotVoltage int64 `json:"got_voltage"`
RemainingStamina int64 `json:"remaining_stamina"`
}
// AsMvpInfo ...
type AsMvpInfo struct {
CardMasterID int64 `json:"card_master_id"`
GetVoltage int64 `json:"get_voltage"`
SkillTriggeredCount int64 `json:"skill_triggered_count"`
AppealCount int64 `json:"appeal_count"`
}
// AsUserCardReq ...
type AsUserCardReq struct {
UserID int64 `json:"user_id"`
CardMasterID int64 `json:"card_master_id"`
}
// AsCardAwakeningReq ...
type AsCardAwakeningReq struct {
CardMasterID int `json:"card_master_id"`
IsAwakeningImage bool `json:"is_awakening_image"`
}
// AsReq ...
type AsReq interface{}
// AsResp ...
type AsResp interface{}
// PackUrlReqBody ...
type PackUrlReqBody struct {
PackNames []string `json:"pack_names"`
}
// PackUrlRespBody ...
type PackUrlRespBody struct {
UrlList []string `json:"url_list"`
}
/* ==== AS END ==== */
+33 -950
View File
File diff suppressed because it is too large Load Diff
-85
View File
@@ -1,85 +0,0 @@
package router
import (
"fmt"
"honoka-chan/config"
"honoka-chan/encrypt"
"honoka-chan/model"
"time"
)
func CheckErr(err error) {
if err != nil {
panic(err)
}
}
func SignResp(ep, body, key string) (resp string) {
signBody := fmt.Sprintf("%d,\"%s\",0,%s", time.Now().UnixMilli(), config.MasterVersion, body)
sign := encrypt.HMAC_SHA1_Encrypt([]byte(ep+" "+signBody), []byte(key))
// fmt.Println(sign)
resp = fmt.Sprintf("[%s,\"%s\"]", signBody, sign)
return
}
func CommonUserStatus() model.AsUserStatus {
return model.AsUserStatus{
Name: model.Name{
DotUnderText: "梦路2号机@果果厨",
},
Nickname: model.Nickname{
DotUnderText: "梦路",
},
LastLoginAt: time.Now().Unix(),
Rank: 122,
Exp: 416263,
Message: model.Message{
DotUnderText: "B站主播:梦路_YumeMichi",
},
RecommendCardMasterID: 200013001,
MaxFriendNum: 0,
LivePointFullAt: 1684158189,
LivePointBroken: 150,
LivePointSubscriptionRecoveryDailyCount: 1,
LivePointSubscriptionRecoveryDailyResetAt: 1656259200,
ActivityPointCount: 0,
ActivityPointResetAt: 1684123200,
ActivityPointPaymentRecoveryDailyCount: 10,
ActivityPointPaymentRecoveryDailyResetAt: 1683734400,
GameMoney: 115665089,
CardExp: 32316167,
FreeSnsCoin: 280,
AppleSnsCoin: 0,
GoogleSnsCoin: 0,
Cash: 0,
SubscriptionCoin: 30,
BirthDate: nil,
BirthMonth: 10,
BirthDay: 18,
LatestLiveDeckID: 1,
MainLessonDeckID: 1,
FavoriteMemberID: 1,
LastLiveDifficultyID: 12092302,
LpMagnification: 1,
EmblemID: 13100608,
DeviceToken: "",
TutorialPhase: 99,
TutorialEndAt: 1622217482,
LoginDays: 446,
NaviTapCount: 2,
NaviTapRecoverAt: 1684771200,
IsAutoMode: false,
MaxScoreLiveDifficultyMasterID: 12037401,
LiveMaxScore: 40553270,
MaxComboLiveDifficultyMasterID: 12037401,
LiveMaxCombo: 301,
LessonResumeStatus: 1,
AccessoryBoxAdditional: 90,
TermsOfUseVersion: 0,
BootstrapSifidCheckAt: 1683178908,
GdprVersion: 0,
MemberGuildMemberMasterID: 1,
MemberGuildLastUpdatedAt: 1659485328,
}
}