forked from all_user/stat_center
Initial commit
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
package proto
|
||||
|
||||
import (
|
||||
"stat/common"
|
||||
"time"
|
||||
)
|
||||
|
||||
// 渠道码统计信息列表请求
|
||||
type BlocListChannelCodeStatReq struct {
|
||||
Channel *string `form:"channel" json:"channel" binding:"omitempty"` // 渠道
|
||||
AppId *int32 `form:"appId" json:"appId" binding:"omitempty"` // appId
|
||||
StartTime *time.Time `form:"startTime" json:"startTime" binding:"omitempty"` // 开始时间
|
||||
EndTime *time.Time `form:"endTime" json:"endTime" binding:"omitempty"` // 结束时间
|
||||
WithChild *bool `form:"withChild" json:"withChild" binding:"omitempty"` // 包含子渠道
|
||||
common.Page
|
||||
}
|
||||
|
||||
type BlocListChannelCodeStatRes struct {
|
||||
Total int64 `json:"total"`
|
||||
TotalInfo BlocChannelCodeStatInfo `json:"totalInfo"`
|
||||
List []BlocChannelCodeStatInfo `json:"list"`
|
||||
}
|
||||
|
||||
type BlocChannelCodeStatInfo struct {
|
||||
SumDate time.Time `json:"sumDate"` // 记录时间 按天对齐
|
||||
ChannelCode string `json:"channelCode"` // 渠道码
|
||||
AppId int32 `json:"appId"` // appId
|
||||
AppName string `json:"appName"` // app名称
|
||||
Channel string `json:"channel"` // 该渠道码所属渠道渠道
|
||||
NewDirectCount int64 `json:"newDirectCount"` // 新增直推
|
||||
NewFissionCount int64 `json:"newFissionCount"` // 新增裂变
|
||||
NewDeductionCount int64 `json:"newDeductionCount"` // 新增扣量(新增 = 新增直推+新增裂变+扣量)
|
||||
DirectVisitCount int64 `json:"directVisitCount"` // 直推访问数
|
||||
FissionVisitCount int64 `json:"fissionVisitCount"` // 裂变访问数
|
||||
Day1RetainRate float64 `json:"day1RetainRate"` // 次日留存率
|
||||
Day3RetainRate float64 `json:"day3RetainRate"` // 3日留存率
|
||||
Day7RetainRate float64 `json:"day7RetainRate"` // 7日留存率
|
||||
RechargeAmount int64 `json:"rechargeAmount"` // 直推充值金额
|
||||
FissionAmount int64 `json:"fissionAmount"` // 裂变充值金额
|
||||
DeductionAmount int64 `json:"deductionAmount"` // 扣量金额
|
||||
NewRechargeCount int64 `json:"newRechargeCount"` // 新增充值数
|
||||
NewRechargeAmount int64 `json:"newRechargeAmount"` // 新增充值金额
|
||||
LandPageVisitCount int64 `json:"landPageVisitCount"` // 落地页访问次数
|
||||
Settlement string `json:"settlement"` // 结算方式 cps/cpa/cpt/cpc
|
||||
TodayIncome int64 `json:"todayIncome"` // 当日收益
|
||||
UpdatedAt time.Time `json:"updatedAt"` // 更新时间
|
||||
}
|
||||
Reference in New Issue
Block a user