初始化项目

This commit is contained in:
2025-12-06 18:36:43 +08:00
parent a42cca3c24
commit bd24d39d57
16 changed files with 11 additions and 159 deletions

View File

@@ -126,21 +126,6 @@ type UpdateAdPositionStatusReq struct {
Status string `json:"status" v:"required"` // 广告位状态:启用、禁用、测试
}
// GetAdPositionStatisticsReq 获取广告位统计数据请求
type GetAdPositionStatisticsReq struct {
g.Meta `path:"/getStatistics" method:"get" tags:"广告位管理" summary:"获取广告位统计数据" dc:"获取广告位的统计数据"`
Id string `json:"id" v:"required"` // 广告位ID
StatType string `json:"statType" v:"required"` // 统计类型:天、周、月
StartDate int64 `json:"startDate"` // 开始日期
EndDate int64 `json:"endDate"` // 结束日期
}
type GetAdPositionStatisticsRes struct {
Statistics []*entity.AdStatistics `json:"statistics"`
Total int `json:"total"`
}
// GetAvailableAdPositionsReq 获取可用广告位请求
type GetAvailableAdPositionsReq struct {
g.Meta `path:"/getAvailableAdPositions" method:"get" tags:"广告位管理" summary:"获取可用广告位列表" dc:"获取所有启用的广告位列表"`

View File

@@ -117,17 +117,3 @@ type UpdateAdStatusReq struct {
Id string `json:"id" v:"required"` // 广告ID
Status string `json:"status" v:"required"` // 广告状态:启用、禁用
}
// GetAdStatisticsReq 获取广告统计数据请求
type GetAdStatisticsForAdvertisementReq struct {
g.Meta `path:"/getStatistics" method:"get" tags:"广告管理" summary:"获取广告统计数据" dc:"获取广告的统计数据"`
Id string `json:"id" v:"required"` // 广告ID
StatType string `json:"statType" v:"required"` // 统计类型:天、周、月
StartDate int64 `json:"startDate"` // 开始日期
EndDate int64 `json:"endDate"` // 结束日期
}
type GetAdStatisticsForAdvertisementRes struct {
Statistics []*entity.AdStatistics `json:"statistics"`
}

View File

@@ -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

View File

@@ -44,6 +44,10 @@ type ReportDetailReq struct {
g.Meta `path:"/getReportDetail" method:"get"`
ReportID int64 `json:"report_id" v:"required"`
}
type ExportReportReq struct {
g.Meta `path:"/exportReport" method:"get"`
ReportID int64 `json:"report_id" v:"required"`
}
// 报表详情响应
type ReportDetailResp struct {