refactor(services/game): 更新游戏版本配置结构
- 新增 GameVersion 结构体,用于获取游戏客户端版本配置 - 修改 GetGameVersionResp 结构,将 Data 字段类型改为 GameVersion -优化了游戏版本信息的组织和返回方式
This commit is contained in:
parent
45e449df11
commit
e1c163ef10
@ -260,6 +260,32 @@ func CreateGetGameCompanyResp() *GetGameCompanyResp {
|
|||||||
|
|
||||||
// ==== 获取游戏客户端版本配置
|
// ==== 获取游戏客户端版本配置
|
||||||
|
|
||||||
|
type GameVersion struct {
|
||||||
|
ID int `json:"id"`
|
||||||
|
GameID int `json:"game_id"`
|
||||||
|
GameVersion string `json:"version"`
|
||||||
|
GameURL string `json:"url"`
|
||||||
|
PayCallbackURL string `json:"pay_callback_url"`
|
||||||
|
DomainURL string `json:"domain_url"`
|
||||||
|
Status int `json:"status"`
|
||||||
|
H5Version int `json:"h5_version"`
|
||||||
|
H5Status int `json:"h5_status"`
|
||||||
|
IsH5Logout int `json:"is_h5_logout"`
|
||||||
|
HideWindow int `json:"hidewindow"`
|
||||||
|
PayInfo PayInfo `json:"pay_display_info"`
|
||||||
|
IsYsdk int `json:"is_ysdk"`
|
||||||
|
CheckVerified int `json:"check_verified"`
|
||||||
|
Company string `json:"company"`
|
||||||
|
CompanyKf string `json:"company_kf"`
|
||||||
|
CompanyProto string `json:"company_proto"`
|
||||||
|
CompanySms string `json:"company_sms"`
|
||||||
|
KfStatus int `json:"kf_status"`
|
||||||
|
PopupTime int `json:"popup_time"`
|
||||||
|
ExtData map[string]any `json:"ext_data"`
|
||||||
|
VersionStatus int `json:"version_status"`
|
||||||
|
VersionTime int `json:"version_time"`
|
||||||
|
}
|
||||||
|
|
||||||
type GetGameVersionReq struct {
|
type GetGameVersionReq struct {
|
||||||
*requests.RpcRequest
|
*requests.RpcRequest
|
||||||
GameId int `position:"Body" field:"game_id"`
|
GameId int `position:"Body" field:"game_id"`
|
||||||
@ -268,9 +294,9 @@ type GetGameVersionReq struct {
|
|||||||
|
|
||||||
type GetGameVersionResp struct {
|
type GetGameVersionResp struct {
|
||||||
*responses.BaseResponse
|
*responses.BaseResponse
|
||||||
Code int `json:"code"`
|
Code int `json:"code"`
|
||||||
Msg string `json:"msg"`
|
Msg string `json:"msg"`
|
||||||
Data GameVersionInfo `json:"data"`
|
Data GameVersion `json:"data"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func CreateGetGameVersionReq(gameId int, gameVersion string) *GetGameVersionReq {
|
func CreateGetGameVersionReq(gameId int, gameVersion string) *GetGameVersionReq {
|
||||||
|
Loading…
Reference in New Issue
Block a user