修改接口返回值
This commit is contained in:
		
							parent
							
								
									792d13fa32
								
							
						
					
					
						commit
						b29010cac6
					
				@ -13,11 +13,13 @@ type GetLoginInfoByIdReq struct {
 | 
			
		||||
	UserName    string `position:"Body" field:"uname"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type GetLoginInfoByIdResp struct {
 | 
			
		||||
	*responses.BaseResponse
 | 
			
		||||
	Code int    `json:"code"`
 | 
			
		||||
	Msg  string `json:"msg"`
 | 
			
		||||
	Data struct {
 | 
			
		||||
type PayInfo struct {
 | 
			
		||||
	HiddenAlipay   int `json:"hide_alipay"`
 | 
			
		||||
	HiddenWx       int `json:"hide_wx"`
 | 
			
		||||
	HiddenUnionPay int `json:"hide_union_pay"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type GameVersionInfo struct {
 | 
			
		||||
	AppName        string         `json:"app_name"`
 | 
			
		||||
	AppID          string         `json:"app_id"`
 | 
			
		||||
	LoginURL       string         `json:"login_url"`
 | 
			
		||||
@ -29,25 +31,27 @@ type GetLoginInfoByIdResp struct {
 | 
			
		||||
	GameVersion    string         `json:"version"`
 | 
			
		||||
	GameSign       string         `json:"game_sign"`
 | 
			
		||||
	GameSignName   string         `json:"game_sign_name"`
 | 
			
		||||
		GameSignID     string `json:"game_sign_id"`
 | 
			
		||||
	GameSignID     int            `json:"game_sign_id"`
 | 
			
		||||
	IsYsdk         int            `json:"is_ysdk"`
 | 
			
		||||
	Company        string         `json:"company"`
 | 
			
		||||
	CompanyKf      string         `json:"company_kf"`
 | 
			
		||||
	CompanyProto   string         `json:"company_proto"`
 | 
			
		||||
	CompanySms     string         `json:"company_sms"`
 | 
			
		||||
		KfStatus       string `json:"kf_status"`
 | 
			
		||||
	KfStatus       int            `json:"kf_status"`
 | 
			
		||||
	PopupTime      int            `json:"popup_time"`
 | 
			
		||||
		PayInfo        struct {
 | 
			
		||||
			HiddenAlipay   int `json:"hide_alipay"`
 | 
			
		||||
			HiddenWx       int `json:"hide_wx"`
 | 
			
		||||
			HiddenUnionPay int `json:"hide_union_pay"`
 | 
			
		||||
		} `json:"pay_info"`
 | 
			
		||||
		GameID     string         `json:"game_id"`
 | 
			
		||||
		ScreenType string         `json:"screen_type"`
 | 
			
		||||
	GameId         int            `json:"game_id"`
 | 
			
		||||
	ScreenType     int            `json:"screen_type"`
 | 
			
		||||
	GameSwitch     int            `json:"game_switch"` // 根据上下文,0 或 1 的整数表示布尔值
 | 
			
		||||
	ExtData        map[string]any `json:"ext_data"`
 | 
			
		||||
	OsName         string         `json:"os_name"`
 | 
			
		||||
	} `json:"data"`
 | 
			
		||||
	PayInfo        PayInfo        `json:"pay_info"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type GetLoginInfoByIdResp struct {
 | 
			
		||||
	*responses.BaseResponse
 | 
			
		||||
	Code int             `json:"code"`
 | 
			
		||||
	Msg  string          `json:"msg"`
 | 
			
		||||
	Data GameVersionInfo `json:"data"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func CreateGetLoginInfoByIdReq(gameId int, gameVersion string) *GetLoginInfoByIdReq {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user