初始化项目
This commit is contained in:
@@ -92,35 +92,6 @@ func (s *advertisement) List(ctx context.Context, req *dto.ListAdvertisementReq)
|
||||
return
|
||||
}
|
||||
|
||||
// GetStatistics 获取广告统计数据
|
||||
func (s *advertisement) GetStatistics(ctx context.Context, req *dto.GetAdStatisticsForAdvertisementReq) (res *dto.GetAdStatisticsForAdvertisementRes, err error) {
|
||||
statReq := &dto.GetAdStatisticsReq{
|
||||
StatType: "advertisement",
|
||||
StatDimension: req.StatType,
|
||||
TargetId: req.Id,
|
||||
StartDate: req.StartDate,
|
||||
EndDate: req.EndDate,
|
||||
DeviceType: "",
|
||||
Platform: "",
|
||||
Region: "",
|
||||
Gender: "",
|
||||
AgeGroup: "",
|
||||
SortBy: "",
|
||||
SortDirection: "",
|
||||
}
|
||||
|
||||
list, _, err := dao.AdStatistics.GetStatistics(ctx, statReq)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
res = &dto.GetAdStatisticsForAdvertisementRes{
|
||||
Statistics: list,
|
||||
}
|
||||
// Total字段不存在,已移除
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateAdStatistics 更新广告统计
|
||||
func (s *advertisement) UpdateAdStatistics(ctx context.Context, id string, impressions, clicks, conversions int64, cost int64) (err error) {
|
||||
// 获取广告信息
|
||||
|
||||
Reference in New Issue
Block a user