feat: wire superadmin p1 data
This commit is contained in:
27
backend/app/http/super/v1/dto/super_report.go
Normal file
27
backend/app/http/super/v1/dto/super_report.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package dto
|
||||
|
||||
// SuperReportOverviewFilter 超管报表查询条件。
|
||||
type SuperReportOverviewFilter struct {
|
||||
// TenantID 租户ID(不传代表全平台)。
|
||||
TenantID *int64 `query:"tenant_id"`
|
||||
// StartAt 统计开始时间(RFC3339,可选;默认当前时间往前 7 天)。
|
||||
StartAt *string `query:"start_at"`
|
||||
// EndAt 统计结束时间(RFC3339,可选;默认当前时间)。
|
||||
EndAt *string `query:"end_at"`
|
||||
// Granularity 统计粒度(day;目前仅支持 day)。
|
||||
Granularity *string `query:"granularity"`
|
||||
}
|
||||
|
||||
// SuperReportExportForm 超管报表导出参数。
|
||||
type SuperReportExportForm struct {
|
||||
// TenantID 租户ID(不传代表全平台)。
|
||||
TenantID *int64 `json:"tenant_id"`
|
||||
// StartAt 统计开始时间(RFC3339,可选;默认当前时间往前 7 天)。
|
||||
StartAt *string `json:"start_at"`
|
||||
// EndAt 统计结束时间(RFC3339,可选;默认当前时间)。
|
||||
EndAt *string `json:"end_at"`
|
||||
// Granularity 统计粒度(day;目前仅支持 day)。
|
||||
Granularity *string `json:"granularity"`
|
||||
// Format 导出格式(仅支持 csv)。
|
||||
Format string `json:"format"`
|
||||
}
|
||||
Reference in New Issue
Block a user