|
|
|
package game
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
|
|
"tyj_admin/internal/model/entity"
|
|
|
|
)
|
|
|
|
|
|
|
|
type GetCCDReq struct {
|
|
|
|
g.Meta `path:"/ccd/getCCD" tags:"ccd" method:"post" summary:"获取ccd"`
|
|
|
|
Platform string `p:"platform"`
|
|
|
|
ChannelType string `p:"channelType"`
|
|
|
|
VersionName string `p:"versionName"`
|
|
|
|
VersionCode string `p:"versionCode"`
|
|
|
|
Ip string `p:"ip"`
|
|
|
|
PageNum int `p:"pageNum"`
|
|
|
|
PageSize int `p:"pageSize"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetCCDRes struct {
|
|
|
|
g.Meta `mime:"application/json"`
|
|
|
|
CCDList []entity.GameCcdUrl `json:"ccdList"`
|
|
|
|
Total int `json:"total"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AddCCDReq struct {
|
|
|
|
g.Meta `path:"/ccd/addCCD" tags:"ccd" method:"post" summary:"添加热更地址"`
|
|
|
|
Platform string `p:"platform"`
|
|
|
|
ChannelType string `p:"channelType"`
|
|
|
|
VersionName string `p:"versionName"`
|
|
|
|
VersionCode string `p:"versionCode"`
|
|
|
|
Ip string `p:"ip"`
|
|
|
|
HotfixVersion string `p:"hotfixVersion"`
|
|
|
|
VersionCompare string `p:"versionCompare"`
|
|
|
|
State uint `p:"state"`
|
|
|
|
Url string `p:"url"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AddCCDRes struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
type DelCCDReq struct {
|
|
|
|
g.Meta `path:"/ccd/delCCD" tags:"ccd" method:"post" summary:"删除热更地址"`
|
|
|
|
Id uint64 `p:"id"`
|
|
|
|
}
|
|
|
|
type DelCCDRes struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetGameCCDReq struct {
|
|
|
|
g.Meta `path:"/ccd/get" tags:"外部接口" method:"post" summary:"登录地址"`
|
|
|
|
ChannelType string `p:"channelType"`
|
|
|
|
Platform string `p:"platform"`
|
|
|
|
VersionName string `p:"versionName"`
|
|
|
|
HotfixVersion string `p:"hotfixVersion"`
|
|
|
|
VersionCode string `p:"versionCode"`
|
|
|
|
Version string `p:"version"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetGameCCDRes struct {
|
|
|
|
g.Meta `mime:"application/json"`
|
|
|
|
Url string `json:"url"`
|
|
|
|
Version string `json:"version"`
|
|
|
|
AuditMode int32 `json:"auditMode"`
|
|
|
|
EnableHotfix int32 `json:"enableHotfix"`
|
|
|
|
EnableAccountLogin int32 `json:"enableAccountLogin"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetGameCCD1Req struct {
|
|
|
|
g.Meta `path:"/ccd1/get" tags:"外部接口" method:"post" summary:"登录地址"`
|
|
|
|
ChannelType string `p:"channelType"`
|
|
|
|
Platform string `p:"platform"`
|
|
|
|
VersionName string `p:"versionName"`
|
|
|
|
HotfixVersion string `p:"hotfixVersion"`
|
|
|
|
VersionCode string `p:"versionCode"`
|
|
|
|
Version string `p:"version"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetGameCCD1Res struct {
|
|
|
|
g.Meta `mime:"application/json"`
|
|
|
|
Version string `json:"version"`
|
|
|
|
}
|