feat(tenant): 增加双站订单视图与租户统计

This commit is contained in:
yml
2026-11-15 15:54:49 +08:00
parent 4eb2bc253b
commit 6d2affa15f
16 changed files with 697 additions and 54 deletions
@@ -4,6 +4,7 @@ import "time"
type DashboardDTO struct {
Metrics MetricsDTO `json:"metrics"`
Tenant *TenantStatsDTO `json:"tenant,omitempty"`
Pending PendingDTO `json:"pending"`
ListingDaily ListingDailyOverviewDTO `json:"listing_daily"`
TradingDaily TradingDailyOverviewDTO `json:"trading_daily"`
@@ -13,6 +14,17 @@ type DashboardDTO struct {
GeneratedAt time.Time `json:"generated_at"`
}
type TenantStatsDTO struct {
TenantID uint64 `json:"tenant_id"`
UserCount int64 `json:"user_count"`
VerifiedUsers int64 `json:"verified_users"`
PublishedListings int64 `json:"published_listings"`
BuyerOrderCount int64 `json:"buyer_order_count"`
BuyerGMVCent int64 `json:"buyer_gmv_cent"`
SourceOrderCount int64 `json:"source_order_count"`
SourceAmountCent int64 `json:"source_amount_cent"`
}
type MetricsDTO struct {
TotalUsers int64 `json:"total_users"`
VerifiedUsers int64 `json:"verified_users"`