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

63 lines
2.2 KiB
Go

package dto
type BusinessPortraitQuery struct {
Sources []string `form:"sourceDbList"`
Period string `form:"period"`
}
type BindingPortraitQuery struct {
SourceDB string `form:"sourceDb"`
PlatformBusierID uint64 `form:"platformBusierId"`
Period string `form:"period"`
}
type PortraitBasic struct {
UserID uint64 `json:"userId"`
UserName string `json:"userName"`
RealName string `json:"realName"`
Level *int `json:"level"`
LevelLabel string `json:"levelLabel"`
ParentUserID *uint64 `json:"parentUserId"`
ParentUserName string `json:"parentUserName"`
ParentRealName string `json:"parentRealName"`
CreateTime *string `json:"createTime"`
Status *string `json:"status"`
StatusLabel string `json:"statusLabel"`
PromoteCount *int64 `json:"promoteCount"`
MonthNewPromote *int64 `json:"monthNewPromote"`
}
type PortraitMetric struct {
Value string `json:"value"`
CompareValue *string `json:"compareValue"`
ChangeRate *string `json:"changeRate"`
ChangeDiff *string `json:"changeDiff"`
CompareLabel *string `json:"compareLabel"`
}
type PortraitMetrics struct {
Register *PortraitMetric `json:"register"`
PayAmount *PortraitMetric `json:"payAmount"`
PayRate *PortraitMetric `json:"payRate"`
ARPU *PortraitMetric `json:"arpu"`
}
type PortraitTrend struct {
Label string `json:"label"`
Value string `json:"value"`
}
type PortraitRank struct {
Rank int `json:"rank"`
SourceDB string `json:"sourceDb"`
SourceDBLabel string `json:"sourceDbLabel"`
PromoteID uint64 `json:"promoteId,string"`
PromoteName string `json:"promoteName"`
Value string `json:"value"`
}
type BusinessPortraitResponse struct {
Basic *PortraitBasic `json:"basic"`
Period string `json:"period"`
Metrics *PortraitMetrics `json:"metrics"`
RegisterTrend []*PortraitTrend `json:"registerTrend"`
PayTrend []*PortraitTrend `json:"payTrend"`
RegisterTop5 []*PortraitRank `json:"registerTop5"`
PayTop5 []*PortraitRank `json:"payTop5"`
Available bool `json:"available"`
UnavailableReason string `json:"unavailableReason"`
}