package pay import ( "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests" "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses" ) type GetVipInfoRequest struct { *requests.RpcRequest UserName string `position:"Body" field:"user_name" default:"" ` } type GetVipInfoResponse struct { *responses.BaseResponse Code int `json:"code"` Msg string `json:"msg"` Data struct { UserName string `json:"user_name"` // 用户名 Score float64 `json:"score"` Level int `json:"level"` AttainDate string `json:"attain_date"` ExpiryDate string `json:"expiry_date"` IsWindows int `json:"is_windows"` } `json:"data"` } func CreateGetVipInfoRequest(userName string) (req *GetVipInfoRequest) { req = &GetVipInfoRequest{ RpcRequest: &requests.RpcRequest{}, UserName: userName, } req.InitWithApiInfo(HOST, VERSION, "/api/user/getVipInfo") req.Method = requests.POST return } func CreateGetVipInfoResponse() (response *GetVipInfoResponse) { response = &GetVipInfoResponse{ BaseResponse: &responses.BaseResponse{}, } return }