7
0
gaore-common-sdk-go/services/game/activity.go
2026-05-11 14:56:28 +08:00

134 lines
4.6 KiB
Go

package game
import (
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses"
)
type GetAnchorUserReq struct {
*requests.RpcRequest
UserName string `position:"Body" field:"user_name"`
AnchorType int64 `position:"Body" field:"type"`
Columns string `position:"Body" field:"columns"`
}
type GetAnchorUserResp struct {
*responses.BaseResponse
Code int `json:"code"`
Msg string `json:"msg"`
Data AnchorUser `json:"data"`
}
type AnchorUser struct {
Id int64 `json:"id"`
UserName string `json:"user_name"`
JoinTime int64 `json:"join_time"`
Remark string `json:"remark"`
AutoAudit int64 `json:"auto_audit"`
VirtualWithdraw int64 `json:"virtual_withdraw"`
Status int64 `json:"status"`
Level int64 `json:"level"`
ZhuanshengLv int64 `json:"zhuansheng_lv"`
MoneyId int64 `json:"money_id"`
PayEntryStatus int64 `json:"pay_entry_status"`
IssueMoneyMax float64 `json:"issue_money_max"`
RealMoneyProportion float64 `json:"real_money_proportion"`
DayIssueMoneyLimit float64 `json:"day_issue_money_limit"`
IssueRegTimeLimit int64 `json:"issue_reg_time_limit"`
IssueRoleCreateTimeLimit int64 `json:"issue_role_create_time_limit"`
AnchorType int64 `json:"type"`
GameIds string `json:"game_ids"`
AgentIds string `json:"agent_ids"`
DayWithdrawLimit float64 `json:"day_withdraw_limit"`
BankCompany string `json:"bank_company"`
BankAccount string `json:"bank_account"`
BankCardName string `json:"bank_card_name"`
PayPassword string `json:"pay_password"`
IssueConfigIds string `json:"issue_config_ids"`
BigMoneyProportion int64 `json:"big_money_proportion"`
BigMoneyRangeMin int64 `json:"big_money_range_min"`
BigMoneyRangeMax int64 `json:"big_money_range_max"`
}
func CreateGetAnchorUserReq(UserName string, AnchorType int64, Columns string) *GetAnchorUserReq {
req := &GetAnchorUserReq{
RpcRequest: &requests.RpcRequest{},
}
req.UserName = UserName
req.AnchorType = AnchorType
req.Columns = Columns
req.InitWithApiInfo(HOST, VERSION, "/api/activity/getAnchorUser")
req.Method = requests.POST
return req
}
func CreateGetAnchorUserResp() *GetAnchorUserResp {
return &GetAnchorUserResp{
BaseResponse: &responses.BaseResponse{},
}
}
type GetRoleReq struct {
*requests.RpcRequest
GameId int64 `position:"Body" field:"game_id"`
UserId string `position:"Body" field:"user_id"`
UserName string `position:"Body" field:"user_name"`
RegTime int64 `position:"Body" field:"reg_time"`
RoleId string `position:"Body" field:"role_id"`
ServerId int64 `position:"Body" field:"server_id"`
UseCache int64 `position:"Body" field:"use_cache"`
NoVirtual int64 `position:"Body" field:"no_virtual"`
}
type RoleItem struct {
RoleId string `json:"roleId"`
Name string `json:"name"`
Server int64 `json:"server"`
ServerName string `json:"serverName"`
Level int64 `json:"level"`
VipLevel int64 `json:"vipLevel"`
CreateTime int64 `json:"createTime"`
RoleLevelUpdateTime int64 `json:"roleLevelUpdateTime"`
Power int64 `json:"power"`
Profession string `json:"profession"`
Gold int64 `json:"gold"`
CouponCount any `json:"couponCount"`
CouponActCount any `json:"couponActCount"`
ZhuanshengLv int64 `json:"zhuansheng_lv"`
ZhuanshengName string `json:"zhuanshengName"`
Points int64 `json:"points"`
MiniCustomsPass any `json:"miniCustomsPass"`
CardIds string `json:"cardIds"`
DayData any `json:"dayData"`
RoleExtData any `json:"roleExtData"`
}
type RoleInfo struct {
RoleItem
FromCache int64 `json:"from_cache"`
}
type GetRoleResp struct {
*responses.BaseResponse
Code int `json:"code"`
Msg string `json:"msg"`
Data struct {
RoleInfo RoleInfo `json:"role_info"`
RoleListInfo []RoleItem `json:"role_list_info"`
} `json:"data"`
}
func CreateGetRoleReq(param *GetRoleReq) *GetRoleReq {
if param == nil {
param = &GetRoleReq{}
}
param.RpcRequest = &requests.RpcRequest{}
param.InitWithApiInfo(HOST, VERSION, "/api/activity/getRole")
param.Method = requests.POST
return param
}
func CreateGetRoleResp() *GetRoleResp {
return &GetRoleResp{BaseResponse: &responses.BaseResponse{}}
}