feat: deepen report metrics

This commit is contained in:
2026-01-15 17:50:37 +08:00
parent ba1d120c84
commit 914df9edf2
10 changed files with 1163 additions and 52 deletions

View File

@@ -19,6 +19,16 @@ type ReportOverviewResponse struct {
type ReportSummary struct {
// TotalViews 内容累计曝光(全量累计值,用于粗略换算)。
TotalViews int64 `json:"total_views"`
// ContentCount 内容总量(当前快照)。
ContentCount int64 `json:"content_count"`
// ContentCreated 统计区间内新增内容数。
ContentCreated int64 `json:"content_created"`
// LikeActions 统计区间内新增点赞数(基于互动记录)。
LikeActions int64 `json:"like_actions"`
// FavoriteActions 统计区间内新增收藏数(基于互动记录)。
FavoriteActions int64 `json:"favorite_actions"`
// CommentCount 统计区间内新增评论数。
CommentCount int64 `json:"comment_count"`
// PaidOrders 统计区间内已支付订单数。
PaidOrders int64 `json:"paid_orders"`
// PaidAmount 统计区间内已支付金额(单位元)。
@@ -27,6 +37,18 @@ type ReportSummary struct {
RefundOrders int64 `json:"refund_orders"`
// RefundAmount 统计区间内退款金额(单位元)。
RefundAmount float64 `json:"refund_amount"`
// WithdrawalApplyOrders 统计区间内提现申请订单数。
WithdrawalApplyOrders int64 `json:"withdrawal_apply_orders"`
// WithdrawalApplyAmount 统计区间内提现申请金额(单位元)。
WithdrawalApplyAmount float64 `json:"withdrawal_apply_amount"`
// WithdrawalPaidOrders 统计区间内提现完成订单数。
WithdrawalPaidOrders int64 `json:"withdrawal_paid_orders"`
// WithdrawalPaidAmount 统计区间内提现完成金额(单位元)。
WithdrawalPaidAmount float64 `json:"withdrawal_paid_amount"`
// WithdrawalFailedOrders 统计区间内提现失败订单数。
WithdrawalFailedOrders int64 `json:"withdrawal_failed_orders"`
// WithdrawalFailedAmount 统计区间内提现失败金额(单位元)。
WithdrawalFailedAmount float64 `json:"withdrawal_failed_amount"`
// ConversionRate 转化率(已支付订单数 / 累计曝光)。
ConversionRate float64 `json:"conversion_rate"`
}
@@ -42,6 +64,26 @@ type ReportOverviewItem struct {
RefundOrders int64 `json:"refund_orders"`
// RefundAmount 当日退款金额(单位元)。
RefundAmount float64 `json:"refund_amount"`
// WithdrawalApplyOrders 当日提现申请订单数。
WithdrawalApplyOrders int64 `json:"withdrawal_apply_orders"`
// WithdrawalApplyAmount 当日提现申请金额(单位元)。
WithdrawalApplyAmount float64 `json:"withdrawal_apply_amount"`
// WithdrawalPaidOrders 当日提现完成订单数。
WithdrawalPaidOrders int64 `json:"withdrawal_paid_orders"`
// WithdrawalPaidAmount 当日提现完成金额(单位元)。
WithdrawalPaidAmount float64 `json:"withdrawal_paid_amount"`
// WithdrawalFailedOrders 当日提现失败订单数。
WithdrawalFailedOrders int64 `json:"withdrawal_failed_orders"`
// WithdrawalFailedAmount 当日提现失败金额(单位元)。
WithdrawalFailedAmount float64 `json:"withdrawal_failed_amount"`
// ContentCreated 当日新增内容数。
ContentCreated int64 `json:"content_created"`
// LikeActions 当日新增点赞数(基于互动记录)。
LikeActions int64 `json:"like_actions"`
// FavoriteActions 当日新增收藏数(基于互动记录)。
FavoriteActions int64 `json:"favorite_actions"`
// CommentCount 当日新增评论数。
CommentCount int64 `json:"comment_count"`
}
type ReportExportForm struct {