package proto import "time" type ChannelAuthReq struct { SharePassword string `json:"sharePassword" form:"sharePassword" binding:"required"` AppId int32 `json:"appId" form:"appId" binding:"required"` ChannelId string `json:"channelId" form:"channelId" binding:"required"` } type ChannelInfoReq struct { AppId int32 `json:"appId" form:"appId" binding:"required"` ChannelId string `json:"channelId" form:"channelId" binding:"required"` } type ChannelInfoResp struct { Platform string `json:"platform" form:"platform"` AppIcon string `json:"appIcon" form:"appIcon"` AppName string `json:"appName" form:"appName"` ChannelCode string `json:"channelCode" form:"channelCode"` ChannelName string `json:"channelName" form:"channelName"` } type OpenInstallReq struct { AppId int32 `json:"appId" form:"appId" binding:"required"` ChannelId string `json:"channelId" form:"channelId" binding:"required"` StartTime time.Time `json:"startTime" form:"startTime" time_format:"2006/01/02"` EndTime time.Time `json:"endTime" form:"endTime" time_format:"2006/01/02"` } type GrowthData struct { // Day1 []int64 `json:"1日后留存数"` // Day7 []int64 `json:"7日后留存数"` // Day30 []int64 `json:"30日后留存数"` Installation []int64 `json:"安装量"` Exposure []int64 `json:"曝光量"` Register []int64 `json:"注册量"` Click []int64 `json:"点击量"` } type GrowthResp struct { Time []time.Time `json:"time" form:"time"` Data GrowthData `json:"data" form:"data"` } type TotalData struct { // Day1 int64 `json:"平均1日后留存率"` // Day7 int64 `json:"平均7日后留存率"` // Day30 int64 `json:"平均30日后留存率"` Installation int64 `json:"安装量"` Exposure int64 `json:"曝光量"` Click int64 `json:"点击量"` Register int64 `json:"注册量"` } type TotalResp struct { Installation int64 `json:"安装量"` Exposure int64 `json:"曝光量"` Click int64 `json:"点击量"` Register int64 `json:"注册量"` Active int64 `json:"访问量"` Recharge int64 `json:"充值"` } type ActiveData struct { Active []int64 `json:"活跃用户数"` } type ActiveResp struct { Time []time.Time `json:"time" form:"time"` Data ActiveData `json:"data" form:"data"` } type AllStatsData struct { Recharge []int64 `json:"充值金额"` // ......... } type AllStatsResp struct { Time []time.Time `json:"time" form:"time"` Data AllStatsData `json:"data" form:"data"` }