Files
kra-new/internal/service/dto/analytics.go
T

61 lines
2.2 KiB
Go

package dto
type AnalyticsQuery struct {
Page int `form:"pageNum"`
PageSize int `form:"pageSize"`
Sources []string `form:"sourceDb"`
GameNames []string `form:"gameName"`
PromoteType *int `form:"promoteType"`
PromoteName string `form:"promoteName"`
BeginTime string `form:"beginTime"`
EndTime string `form:"endTime"`
SortField string `form:"sortField"`
SortOrder string `form:"sortOrder"`
}
type AnalyticsMetrics struct {
Register int64 `json:"newRegisterCount"`
Active int64 `json:"activeCount"`
PayUsers int64 `json:"payUserCount"`
NewPayUsers int64 `json:"newPayUserCount"`
TotalPay string `json:"totalPay"`
PayRate string `json:"payRate"`
}
type ChannelAnalyticsRow struct {
SourceDB string `json:"sourceDb"`
SourceDBLabel string `json:"sourceDbLabel"`
PromoteID *int64 `json:"promoteId"`
PromoteName string `json:"promoteName"`
PromoteType *int `json:"promoteType"`
BusierName string `json:"busierName"`
AnalyticsMetrics
}
type GameAnalyticsRow struct {
SourceDB string `json:"sourceDb"`
SourceDBLabel string `json:"sourceDbLabel"`
GameID *int64 `json:"gameId"`
GameName string `json:"gameName"`
AnalyticsMetrics
ARPU string `json:"arpu"`
ARPPU string `json:"arppu"`
}
type ChannelAnalyticsPage struct {
Rows []*ChannelAnalyticsRow `json:"rows"`
Total int64 `json:"total"`
ChannelCount *int64 `json:"channelCount"`
TotalRegisterCount *int64 `json:"totalRegisterCount"`
TotalPayAmount *string `json:"totalPayAmount"`
AvgPayRate *string `json:"avgPayRate"`
Summary *ChannelAnalyticsRow `json:"summary"`
BeginTime string `json:"beginTime"`
EndTime string `json:"endTime"`
Available bool `json:"available"`
}
type GameAnalyticsPage struct {
Rows []*GameAnalyticsRow `json:"rows"`
Total int64 `json:"total"`
Summary *GameAnalyticsRow `json:"summary"`
BeginTime string `json:"beginTime"`
EndTime string `json:"endTime"`
Available bool `json:"available"`
}