重构数据引擎
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
package copydata
|
||||
|
||||
import (
|
||||
"context"
|
||||
dto "dataengine/model/dto/copydata"
|
||||
service "dataengine/service/copydata"
|
||||
)
|
||||
|
||||
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