package game import ( "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests" "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses" ) // IsBlockOutIosReq // 获取切支付规则 type IsBlockOutIosReq struct { *requests.RpcRequest UserName string `position:"Body" field:"user_name"` GameId int64 `position:"Body" field:"appid"` Ip string `position:"Body" field:"ip"` Imei string `position:"Body" field:"imei"` LoginDays int64 `position:"Body" field:"login_days"` PlayTime int64 `position:"Body" field:"play_time"` } type IsBlockOutIosRespData struct { PayInChannel bool `json:"pay_in_channel"` PayInChannelMatchedRule []int64 `json:"pay_in_channel_matched_rule"` DoDisplayIos bool `json:"do_display_ios"` DoDisplayIosMatchedRule []int64 `json:"do_display_ios_matched_rule"` DoDisplayWebsite bool `json:"do_display_website"` DoDisplayWebsiteMatchedRule []int64 `json:"do_display_website_matched_rule"` DoDisplayWebsiteWechatInfo string `json:"do_display_website_wechat_info"` DoWebOrderPay bool `json:"do_web_order_pay"` DoWebOrderPayMatchedRule []int64 `json:"do_web_order_pay_matched_rule"` DoWebOrderPayWechatInfo string `json:"do_web_order_pay_wechat_info"` } type IsBlockOutIosResp struct { *responses.BaseResponse Code int `json:"code"` Msg string `json:"msg"` Data IsBlockOutIosRespData `json:"data"` } func CreateIsBlockOutIosReq(userName string, gameId int64, ip string, imei string, loginDays, playTime int64) *IsBlockOutIosReq { req := &IsBlockOutIosReq{ RpcRequest: &requests.RpcRequest{}, } req.UserName = userName req.GameId = gameId req.Ip = ip req.Imei = imei req.LoginDays = loginDays req.PlayTime = playTime req.InitWithApiInfo(HOST, VERSION, "/api/pay/isBlockOutIos") req.Method = requests.POST return req } func CreateIsBlockOutIosResp() *IsBlockOutIosResp { resp := &IsBlockOutIosResp{ BaseResponse: &responses.BaseResponse{}, } return resp } // MakeOrderReq 预下单请求 type MakeOrderReq struct { *requests.RpcRequest Username string `position:"Body" field:"username"` Gid int64 `position:"Body" field:"gid"` Sid string `position:"Body" field:"sid"` RealSid string `position:"Body" field:"real_sid"` RoleId string `position:"Body" field:"role_id"` RoleName string `position:"Body" field:"role_name"` Money float64 `position:"Body" field:"money"` ServerName string `position:"Body" field:"server_name"` ProductName string `position:"Body" field:"product_name"` DwId int64 `position:"Body" field:"dw_id"` } type MakeOrderRespData struct { OrderID string `json:"orderID"` } type MakeOrderResp struct { *responses.BaseResponse Code int `json:"code"` Msg string `json:"msg"` Data MakeOrderRespData `json:"data"` } type MakeOrderParam struct { Username string Gid int64 Sid string RealSid string RoleId string RoleName string Money float64 ServerName string ProductName string DwId int64 } func CreateMakeOrderReq(param MakeOrderParam) *MakeOrderReq { req := &MakeOrderReq{ RpcRequest: &requests.RpcRequest{}, Username: param.Username, Gid: param.Gid, Sid: param.Sid, RealSid: param.RealSid, RoleId: param.RoleId, RoleName: param.RoleName, Money: param.Money, ServerName: param.ServerName, ProductName: param.ProductName, DwId: param.DwId, } req.InitWithApiInfo(HOST, VERSION, "/api/pay/makeOrder") req.Method = requests.POST return req } func CreateMakeOrderResp() *MakeOrderResp { return &MakeOrderResp{ BaseResponse: &responses.BaseResponse{}, } }