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