46 lines
1.2 KiB
Go
46 lines
1.2 KiB
Go
|
package cs
|
||
|
|
||
|
import (
|
||
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
|
||
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses"
|
||
|
)
|
||
|
|
||
|
// 中旭人工客服链接,主体与游戏配置
|
||
|
|
||
|
type LinkGameConfig struct {
|
||
|
SubjectSign string `json:"subject_sign"`
|
||
|
SubjectName string `json:"subject_name"`
|
||
|
LinkGameId int64 `json:"link_game_id"`
|
||
|
CreatedAt string `json:"created_at"`
|
||
|
}
|
||
|
type GetLinkGameConfigRequest struct {
|
||
|
*requests.JsonRequest
|
||
|
Company string `position:"Json" field:"company"`
|
||
|
}
|
||
|
type GetLinkGameConfigResponse struct {
|
||
|
*responses.BaseResponse
|
||
|
Code int `json:"code"`
|
||
|
Msg string `json:"msg"`
|
||
|
Data *LinkGameConfig `json:"data"`
|
||
|
}
|
||
|
type LinkGameConfigRequest struct {
|
||
|
Company string `json:"company"`
|
||
|
}
|
||
|
|
||
|
func CreateGetLinkGameConfigRequest(param LinkGameConfigRequest) (req *GetLinkGameConfigRequest) {
|
||
|
req = &GetLinkGameConfigRequest{
|
||
|
JsonRequest: &requests.JsonRequest{},
|
||
|
Company: param.Company,
|
||
|
}
|
||
|
req.InitWithApiInfo(HOST, VERSION, "/v1/config/get_link_game_config")
|
||
|
|
||
|
req.Method = requests.POST
|
||
|
return
|
||
|
}
|
||
|
func CreateGetLinkGameConfigResponse() (response *GetLinkGameConfigResponse) {
|
||
|
response = &GetLinkGameConfigResponse{
|
||
|
BaseResponse: &responses.BaseResponse{},
|
||
|
}
|
||
|
return
|
||
|
}
|