feat: 迁移商务工作台指标和仪表盘榜单

This commit is contained in:
Yvan
2026-11-04 01:25:51 +08:00
parent 0bef29ae4f
commit cbf0ee9be3
26 changed files with 1220 additions and 22 deletions
+31
View File
@@ -0,0 +1,31 @@
package dto
type WorkbenchQuery struct {
Sources []string `form:"sourceDbList"`
Period string `form:"period"`
Order string `form:"order"`
}
type WorkbenchCard struct {
Value *string `json:"value"`
CompareValue *string `json:"compareValue"`
ChangeRate *string `json:"changeRate"`
ChangeDiff *string `json:"changeDiff"`
CompareLabel string `json:"compareLabel"`
}
type WorkbenchSummary struct {
TodayRegister *WorkbenchCard `json:"todayRegister"`
TodayActive *WorkbenchCard `json:"todayActive"`
TodayPay *WorkbenchCard `json:"todayPay"`
MonthPay *WorkbenchCard `json:"monthPay"`
ActivePromote *WorkbenchCard `json:"activePromote"`
NewPromote *WorkbenchCard `json:"newPromote"`
Available bool `json:"available"`
}
type WorkbenchRankRow struct {
Rank int `json:"rank"`
SourceDB string `json:"sourceDb"`
SourceDBLabel string `json:"sourceDbLabel"`
PromoteID int64 `json:"promoteId"`
PromoteName string `json:"promoteName"`
Value string `json:"value"`
}