mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-15 11:02:26 +08:00
优化架构
This commit is contained in:
34
dispatch/entity/api/combo_token_res.go
Normal file
34
dispatch/entity/api/combo_token_res.go
Normal file
@@ -0,0 +1,34 @@
|
||||
package api
|
||||
|
||||
type ComboTokenRes struct {
|
||||
Message string `json:"message"`
|
||||
Retcode int `json:"retcode"`
|
||||
Data LoginData `json:"data"`
|
||||
}
|
||||
|
||||
type LoginData struct {
|
||||
AccountType int `json:"account_type"`
|
||||
Heartbeat bool `json:"heartbeat"`
|
||||
ComboID string `json:"combo_id"`
|
||||
ComboToken string `json:"combo_token"`
|
||||
OpenID string `json:"open_id"`
|
||||
Data string `json:"data"`
|
||||
FatigueRemind any `json:"fatigue_remind"`
|
||||
}
|
||||
|
||||
func NewComboTokenRes() (r *ComboTokenRes) {
|
||||
r = &ComboTokenRes{
|
||||
Message: "",
|
||||
Retcode: 0,
|
||||
Data: LoginData{
|
||||
AccountType: 1,
|
||||
Heartbeat: false,
|
||||
ComboID: "",
|
||||
ComboToken: "",
|
||||
OpenID: "",
|
||||
Data: "{\"guest\":false}",
|
||||
FatigueRemind: nil,
|
||||
},
|
||||
}
|
||||
return r
|
||||
}
|
||||
Reference in New Issue
Block a user