31 lines
1.3 KiB
Go
31 lines
1.3 KiB
Go
package copydata
|
|
|
|
import (
|
|
dto "cid/model/dto/copydata"
|
|
service "cid/service/copydata"
|
|
"context"
|
|
)
|
|
|
|
type creativeReport struct{}
|
|
|
|
// CreativeReport 广告效果指标表控制器
|
|
var CreativeReport = new(creativeReport)
|
|
|
|
// CreateCreativeReportSum 创建广告效果指标表
|
|
func (c *creativeReport) CreateCreativeReportSum(ctx context.Context, req *dto.CreateCreativeReportSumReq) (res *dto.CreateCreativeReportSumRes, err error) {
|
|
return service.CreativeReportSum.Create(ctx, req.CreativeReportSumItem)
|
|
}
|
|
|
|
// BatchCreateCreativeReportSum 批量创建广告效果指标表
|
|
func (c *creativeReport) BatchCreateCreativeReportSum(ctx context.Context, req *dto.BatchCreateCreativeReportSumReq) (res *dto.BatchCreateCreativeReportSumRes, err error) {
|
|
return service.CreativeReportSum.BatchCreate(ctx, req)
|
|
}
|
|
|
|
func (c *creativeReport) CreateCreativeReportDetail(ctx context.Context, req *dto.CreateCreativeReportDetailReq) (res *dto.CreateCreativeReportDetailRes, err error) {
|
|
return service.CreativeReportSum.CreateDetail(ctx, req.CreativeReportDetailItem)
|
|
}
|
|
|
|
func (c *creativeReport) BatchCreateCreativeReportDetail(ctx context.Context, req *dto.BatchCreateCreativeReportDetailReq) (res *dto.BatchCreateCreativeReportDetailRes, err error) {
|
|
return service.CreativeReportSum.BatchCreateDetail(ctx, req)
|
|
}
|