代码初始化
This commit is contained in:
30
controller/copydata/creative_report_sum_controller.go
Normal file
30
controller/copydata/creative_report_sum_controller.go
Normal file
@@ -0,0 +1,30 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user