初始化项目
This commit is contained in:
@@ -36,24 +36,6 @@ type GenerateCIDRes struct {
|
||||
GeneratedAt string `json:"generated_at"` // 生成时间
|
||||
}
|
||||
|
||||
// GetCIDStatisticsReq 获取CID统计请求
|
||||
type GetCIDStatisticsReq struct {
|
||||
g.Meta `path:"/getStatistics" method:"get" tags:"CID服务" summary:"获取CID统计" dc:"获取CID服务的统计信息"`
|
||||
UserId int64 `json:"user_id"` // 用户ID(可选)
|
||||
TenantId int64 `json:"tenant_id"` // 租户ID(可选)
|
||||
DateFrom int64 `json:"date_from"` // 开始日期
|
||||
DateTo int64 `json:"date_to"` // 结束日期
|
||||
}
|
||||
|
||||
// GetCIDStatisticsRes 获取CID统计响应
|
||||
type GetCIDStatisticsRes struct {
|
||||
TotalRequests int64 `json:"total_requests"` // 总请求数
|
||||
SuccessfulReq int64 `json:"successful_requests"` // 成功请求数
|
||||
AverageProcessTime float64 `json:"average_process_time"` // 平均处理时间
|
||||
TopSources []string `json:"top_sources"` // 主要广告源
|
||||
ConversionStats map[string]float64 `json:"conversion_stats"` // 转化率统计
|
||||
}
|
||||
|
||||
// CIDRequestHistory CID请求历史记录
|
||||
type CIDRequestHistory struct {
|
||||
Id int64 `json:"id"` // 记录ID
|
||||
|
||||
Reference in New Issue
Block a user