56 lines
1.1 KiB
Go
56 lines
1.1 KiB
Go
package managecenterModel
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// 合作商
|
|
type Partner struct {
|
|
// 合作商Id
|
|
Id int32 `json:"PartnerID"`
|
|
|
|
// 合作商名称
|
|
Name string `json:"PartnerName"`
|
|
|
|
// 合作商别名
|
|
Alias string `json:"PartnerAlias"`
|
|
|
|
// 应用Id
|
|
AppId string `json:"AppID"`
|
|
|
|
// 登陆加密Key
|
|
LoginKey string `json:"LoginKey"`
|
|
|
|
// 充值配置
|
|
ChargeConfig string `json:"ChargeConfig"`
|
|
|
|
// 其它配置
|
|
OtherConfigInfo string `json:"OtherConfigInfo"`
|
|
|
|
// 游戏版本下载Url
|
|
GameVersionUrl string `json:"GameVersionUrl"`
|
|
|
|
// 充值服务器Url
|
|
ChargeServerUrl string `json:"ChargeServerUrl"`
|
|
|
|
// 合作商类型
|
|
PartnerType int32 `json:"PartnerType"`
|
|
|
|
// 权重
|
|
Weight int32 `json:"Weight"`
|
|
|
|
// 资源包所属类型
|
|
ResourceType int32 `json:"ResourceType"`
|
|
}
|
|
|
|
// 解析其它配置信息
|
|
func (this *Partner) ResolveOtherConfig() (otherConfigMap map[string]string, err error) {
|
|
otherConfigMap = make(map[string]string, 8)
|
|
if this.OtherConfigInfo == "" {
|
|
return
|
|
}
|
|
|
|
err = json.Unmarshal([]byte(this.OtherConfigInfo), &otherConfigMap)
|
|
return
|
|
}
|