|
|
|
|
package values
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"server/common"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// MailDraftListReq 请求草稿列表
|
|
|
|
|
// Page 页码
|
|
|
|
|
// Num 一页的数目
|
|
|
|
|
// 根据搜索条件发送相应字段即可,多个条件可叠加搜索
|
|
|
|
|
// Title 搜索条件标题
|
|
|
|
|
// StartSendTime 搜索条件发送时间的时间戳
|
|
|
|
|
// EndSendTime 搜索条件发送时间的时间戳
|
|
|
|
|
type MailDraftListReq struct {
|
|
|
|
|
Page uint `json:"Page" binding:"required"`
|
|
|
|
|
Num uint `json:"Num" binding:"required"`
|
|
|
|
|
Title *string `json:"Title"`
|
|
|
|
|
StartSendTime *int64 `json:"StartSendTime"`
|
|
|
|
|
EndSendTime *int64 `json:"EndSendTime"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MailDraftListResp 请求草稿列表返回
|
|
|
|
|
// count 总数
|
|
|
|
|
type MailDraftListResp struct {
|
|
|
|
|
List []common.MailDraft
|
|
|
|
|
Count int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MailDraftCreateReq 创建草稿
|
|
|
|
|
// Sender 发件人
|
|
|
|
|
// Receiver 收件人可以是数组(空数组代表全服群发)
|
|
|
|
|
// Type 邮件类型 1正常 2紧急
|
|
|
|
|
// Title 邮件标题
|
|
|
|
|
// content 邮件正文
|
|
|
|
|
// Enclosure 附件
|
|
|
|
|
// SendMethod 发送方式 1立刻 2定时
|
|
|
|
|
// SendTime 发送时间 当SendMethod为2时不能为空
|
|
|
|
|
type MailDraftCreateReq struct {
|
|
|
|
|
Sender string `json:"Sender" binding:"required"`
|
|
|
|
|
Receiver []int `json:"Receiver" binding:"required"`
|
|
|
|
|
Type int `json:"Type" binding:"required"`
|
|
|
|
|
Title string `json:"Title" binding:"required"`
|
|
|
|
|
Content string `json:"Content" binding:"required"`
|
|
|
|
|
Enclosure []*common.CurrencyPair `json:"Enclosure" binding:"required"`
|
|
|
|
|
SendMethod int `json:"SendMethod" binding:"required"`
|
|
|
|
|
SendTime int64 `json:"SendTime"`
|
|
|
|
|
// 0:全部用户,1:xx时间前注册的用户,2:有充值用户,3:新用户(当天注册),4:老用户(非当天注册),5:累计充值达到x的用户,6:x渠道用户
|
|
|
|
|
UserTag int `json:"UserTag"`
|
|
|
|
|
// 最大注册日期,对应UserTag为1
|
|
|
|
|
MaxBirthAt int64 `json:"MaxBirthAt"`
|
|
|
|
|
// 充值额度,对应UserTag为5
|
|
|
|
|
RechargeAmount int64 `json:"RechargeAmount"`
|
|
|
|
|
// 渠道id(整型数据json),对应UserTag为6
|
|
|
|
|
ChannelId string `json:"ChannelId"`
|
|
|
|
|
// 跳转链接,不限制
|
|
|
|
|
URL string `json:"URL"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MailDraftEditReq 编辑草稿
|
|
|
|
|
// ID 编辑的草稿id
|
|
|
|
|
// Sender 发件人
|
|
|
|
|
// Receiver 收件人可以是数组(空数组代表全服群发)
|
|
|
|
|
// Type 邮件类型 1正常 2紧急
|
|
|
|
|
// Title 邮件标题
|
|
|
|
|
// content 邮件正文
|
|
|
|
|
// Enclosure 附件
|
|
|
|
|
// SendMethod 发送方式 1立刻 2定时
|
|
|
|
|
// SendTime 发送时间
|
|
|
|
|
type MailDraftEditReq struct {
|
|
|
|
|
ID string `json:"ID" binding:"required"`
|
|
|
|
|
Sender *string `json:"Sender"`
|
|
|
|
|
Receiver *[]int `json:"Receiver"`
|
|
|
|
|
Type *int `json:"Type"`
|
|
|
|
|
Title *string `json:"Title"`
|
|
|
|
|
Content *string `json:"Content"`
|
|
|
|
|
Enclosure []*common.CurrencyPair `json:"Enclosure"`
|
|
|
|
|
SendMethod *int `json:"SendMethod"`
|
|
|
|
|
SendTime *int64 `json:"SendTime"`
|
|
|
|
|
UserTag *int `json:"UserTag"`
|
|
|
|
|
MaxBirthAt *int64 `json:"MaxBirthAt"`
|
|
|
|
|
RechargeAmount *int64 `json:"RechargeAmount"`
|
|
|
|
|
ChannelId *string `json:"ChannelId"`
|
|
|
|
|
URL *string `json:"URL"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MailDraftOptReq 操作草稿
|
|
|
|
|
// ID 编辑的草稿id
|
|
|
|
|
// Opt 操作码 1删除 2撤销 3发送
|
|
|
|
|
type MailDraftOptReq struct {
|
|
|
|
|
ID string `json:"ID" binding:"required"`
|
|
|
|
|
Opt int `json:"Opt" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ProductListResp 请求充值列表返回
|
|
|
|
|
type ProductListResp struct {
|
|
|
|
|
List []*common.ConfigPayProduct
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GamesListResp 游戏列表
|
|
|
|
|
type GamesListResp struct {
|
|
|
|
|
List []string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ChannelListResp 渠道列表
|
|
|
|
|
type ChannelListResp struct {
|
|
|
|
|
List []*common.Channel
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// WhiteListSwitchReq 白名单开关
|
|
|
|
|
// Channel 渠道
|
|
|
|
|
// Opt 1开启 2关闭
|
|
|
|
|
// Version 配置的版本
|
|
|
|
|
type WhiteListSwitchReq struct {
|
|
|
|
|
Channel int `json:"Channel" binding:"required"`
|
|
|
|
|
Opt int `json:"Opt" binding:"required"`
|
|
|
|
|
Version int `json:"Version" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// WhiteListReq 请求白名单
|
|
|
|
|
type WhiteListReq struct {
|
|
|
|
|
Page uint `json:"Page" binding:"required"`
|
|
|
|
|
Num uint `json:"Num" binding:"required"`
|
|
|
|
|
ListType int `json:"ListType"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// WhiteListResp 请求白名单返回
|
|
|
|
|
// count 总数
|
|
|
|
|
// SwitchList 渠道开关列表
|
|
|
|
|
type WhiteListResp struct {
|
|
|
|
|
List []common.WhiteList
|
|
|
|
|
Count int64
|
|
|
|
|
SwitchList []common.WhiteList
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// AddWhiteListReq 新增白名单
|
|
|
|
|
// ListType 名单类型 1白名单 2黑名单
|
|
|
|
|
// LimitType 限制类型 1ip限制 2设备限制
|
|
|
|
|
// Content ip或者设备码
|
|
|
|
|
// Channel 渠道类型 facebook 2 gooleplay 3
|
|
|
|
|
// Version 版本号
|
|
|
|
|
// Powers 权限
|
|
|
|
|
// CreateTime 创建时间
|
|
|
|
|
// Operator 操作人
|
|
|
|
|
type AddWhiteListReq struct {
|
|
|
|
|
ListType int `json:"ListType" binding:"required"`
|
|
|
|
|
LimitType int `json:"LimitType" binding:"required"`
|
|
|
|
|
Content string `json:"Content" binding:"required"`
|
|
|
|
|
Channel int `json:"Channel" binding:"required"`
|
|
|
|
|
Version int `json:"Version" binding:"required"`
|
|
|
|
|
Powers []int `json:"Powers" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// EditWhiteListReq 修改白名单
|
|
|
|
|
// ListType 名单类型 1白名单 2黑名单
|
|
|
|
|
// LimitType 限制类型 1ip限制 2设备限制
|
|
|
|
|
// Content ip或者设备码
|
|
|
|
|
// Channel 渠道类型 facebook 2 gooleplay 3
|
|
|
|
|
// Version 版本号
|
|
|
|
|
// Powers 权限
|
|
|
|
|
// CreateTime 创建时间
|
|
|
|
|
// Operator 操作人
|
|
|
|
|
type EditWhiteListReq struct {
|
|
|
|
|
ID string `json:"ID" binding:"required"`
|
|
|
|
|
ListType *int `json:"ListType"`
|
|
|
|
|
LimitType *int `json:"LimitType"`
|
|
|
|
|
Content *string `json:"Content"`
|
|
|
|
|
Channel *int `json:"Channel"`
|
|
|
|
|
Version *int `json:"Version"`
|
|
|
|
|
Powers *[]int `json:"Powers"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DeleteWhiteListReq 删除白名单
|
|
|
|
|
type DeleteWhiteListReq struct {
|
|
|
|
|
ID string `json:"ID" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// AddChannelReq 新增渠道
|
|
|
|
|
// ChannelID 渠道ID
|
|
|
|
|
// PlatformID 平台ID 1 gooleplay
|
|
|
|
|
// Name 渠道名
|
|
|
|
|
// PackName 包名
|
|
|
|
|
// PayID 支付商户id
|
|
|
|
|
// PayKey 支付商户key
|
|
|
|
|
// PaySecret 支付商户秘钥
|
|
|
|
|
// Version 审核版本号(高于该版本的渠道包将进入审核服)
|
|
|
|
|
// MainVersion 正式服版本
|
|
|
|
|
// IsHot 是否热更 1不热更 2热更
|
|
|
|
|
// Games 开启的游戏
|
|
|
|
|
// AdjustAuth adjust验证码
|
|
|
|
|
// AdjustAppToken adjust应用token
|
|
|
|
|
// AdjustEventID adjust事件id,按顺序隔开
|
|
|
|
|
// URL 应用域名
|
|
|
|
|
// Show 是否开启展示 0不开 1开启
|
|
|
|
|
// IgnoreOrganic 是否屏蔽自然量 1不屏蔽 2屏蔽
|
|
|
|
|
type AddChannelReq struct {
|
|
|
|
|
ChannelID int `json:"ChannelID" binding:"required"`
|
|
|
|
|
PlatformID int `json:"PlatformID" binding:"required"`
|
|
|
|
|
Name string `json:"Name" binding:"required"`
|
|
|
|
|
PackName string `json:"PackName" binding:"required"`
|
|
|
|
|
Version int `json:"Version" binding:"required"`
|
|
|
|
|
MainVersion int `json:"MainVersion"`
|
|
|
|
|
IsHot int `json:"IsHot" binding:"required"`
|
|
|
|
|
AdjustAuth string `json:"AdjustAuth" binding:"required"`
|
|
|
|
|
AdjustAppToken string `json:"AdjustAppToken" binding:"required"`
|
|
|
|
|
AdjustEventID string `json:"AdjustEventID" binding:"required"`
|
|
|
|
|
URL string `json:"URL" binding:"required"`
|
|
|
|
|
Show int `json:"Show"`
|
|
|
|
|
IgnoreOrganic int `json:"IgnoreOrganic"`
|
|
|
|
|
FBPixelID string
|
|
|
|
|
FBAccessToken string
|
|
|
|
|
UP int
|
|
|
|
|
ADUpload int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// EditChannelReq 编辑渠道
|
|
|
|
|
// ID 记录ID,唯一标识
|
|
|
|
|
// ChannelID 渠道ID
|
|
|
|
|
// PlatformID 平台ID 1 gooleplay
|
|
|
|
|
// Name 渠道名
|
|
|
|
|
// PackName 包名
|
|
|
|
|
// Version 审核版本号(高于该版本的渠道包将进入审核服)
|
|
|
|
|
// MainVersion 正式服版本
|
|
|
|
|
// IsHot 是否热更 1不热更 2热更
|
|
|
|
|
// Games 开启的游戏
|
|
|
|
|
// AdjustAuth adjust验证码
|
|
|
|
|
// AdjustAppToken adjust应用token
|
|
|
|
|
// AdjustEventID adjust事件id,按顺序隔开
|
|
|
|
|
// URL 应用域名
|
|
|
|
|
// Show 是否开启展示 0不开 1开启
|
|
|
|
|
// IgnoreOrganic 是否屏蔽自然量 1不屏蔽 2屏蔽
|
|
|
|
|
type EditChannelReq struct {
|
|
|
|
|
ID int `json:"ID" binding:"required"`
|
|
|
|
|
PlatformID *int `json:"PlatformID"`
|
|
|
|
|
ChannelID *int `json:"ChannelID"`
|
|
|
|
|
Name *string `json:"Name"`
|
|
|
|
|
PackName *string `json:"PackName"`
|
|
|
|
|
Version *int `json:"Version"`
|
|
|
|
|
MainVersion *int `json:"MainVersion"`
|
|
|
|
|
IsHot *int `json:"IsHot"`
|
|
|
|
|
AdjustAuth *string `json:"AdjustAuth"`
|
|
|
|
|
AdjustAppToken *string `json:"AdjustAppToken"`
|
|
|
|
|
AdjustEventID *string `json:"AdjustEventID"`
|
|
|
|
|
URL *string `json:"URL"`
|
|
|
|
|
Show *int `json:"Show"`
|
|
|
|
|
IgnoreOrganic *int `json:"IgnoreOrganic"`
|
|
|
|
|
FBPixelID *string
|
|
|
|
|
FBAccessToken *string
|
|
|
|
|
UP *int
|
|
|
|
|
ADUpload *int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DelChannelReq 删除渠道
|
|
|
|
|
// ID 记录ID,唯一标识
|
|
|
|
|
type DelChannelReq struct {
|
|
|
|
|
ID int `json:"ID" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// EditHistoryListReq 操作日志请求
|
|
|
|
|
type EditHistoryListReq struct {
|
|
|
|
|
Page uint `json:"Page" binding:"required"`
|
|
|
|
|
Num uint `json:"Num" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// EditHistoryListResp 操作日志
|
|
|
|
|
type EditHistoryListResp struct {
|
|
|
|
|
List []EditHistory
|
|
|
|
|
Count int64
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UserInfoResp 获取用户信息
|
|
|
|
|
type UserInfoResp struct {
|
|
|
|
|
Name string
|
|
|
|
|
Role int
|
|
|
|
|
Power string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// AccountListResp 账号列表
|
|
|
|
|
type AccountListResp struct {
|
|
|
|
|
List []string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type UploadOSSReq struct {
|
|
|
|
|
Endpoint string
|
|
|
|
|
AccessKeyId string
|
|
|
|
|
AccessKeySecret string
|
|
|
|
|
BucketName string
|
|
|
|
|
ObjectName string
|
|
|
|
|
Folder string // 文件夹
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type UploadOSSResp struct {
|
|
|
|
|
Url string
|
|
|
|
|
}
|