33 lines
1.4 KiB
Go
33 lines
1.4 KiB
Go
package copydata
|
|
|
|
import (
|
|
dto "cid/model/dto/copydata"
|
|
service "cid/service/copydata"
|
|
"context"
|
|
)
|
|
|
|
type storewideReport struct{}
|
|
|
|
// StorewideReport 广告效果指标控制器
|
|
var StorewideReport = new(storewideReport)
|
|
|
|
// CreateStorewideReport 创建广告效果指标表
|
|
func (c *storewideReport) CreateStorewideReport(ctx context.Context, req *dto.CreateStorewideReportSumReq) (res *dto.CreateStorewideReportSumRes, err error) {
|
|
return service.StorewideReportSum.Create(ctx, req.StorewideReportSumItem)
|
|
}
|
|
|
|
// BatchCreateStorewideReport 批量创建广告效果指标表
|
|
func (c *storewideReport) BatchCreateStorewideReport(ctx context.Context, req *dto.BatchCreateStorewideReportSumReq) (res *dto.BatchCreateStorewideReportSumRes, err error) {
|
|
return service.StorewideReportSum.BatchCreate(ctx, req)
|
|
}
|
|
|
|
// CreateStorewideReportDetail 创建广告效果指标表
|
|
func (c *storewideReport) CreateStorewideReportDetail(ctx context.Context, req *dto.CreateStorewideReportDetailReq) (res *dto.CreateStorewideReportDetailRes, err error) {
|
|
return service.StorewideReportSum.CreateDetail(ctx, req.StorewideReportDetailItem)
|
|
}
|
|
|
|
// BatchCreateStorewideReportDetail 批量创建广告效果指标表
|
|
func (c *storewideReport) BatchCreateStorewideReportDetail(ctx context.Context, req *dto.BatchCreateStorewideReportDetailReq) (res *dto.BatchCreateStorewideReportDetailRes, err error) {
|
|
return service.StorewideReportSum.BatchCreateDetail(ctx, req)
|
|
}
|