修改包名

This commit is contained in:
2026-04-09 10:48:30 +08:00
parent 556ec5075e
commit 5797fbb43e
11 changed files with 19 additions and 20 deletions

View File

@@ -3,7 +3,7 @@ package main
import (
dao "cid/dao/copydata"
taskDto "cid/model/dto/copydata"
"cid/sync"
"cid/syncdata"
"context"
"fmt"
"strings"
@@ -17,13 +17,13 @@ import (
// CompensationScheduler 补偿调度器,负责扫描和补偿失败的分页同步任务
type CompensationScheduler struct {
syncService *sync.SyncService
syncService *syncdata.SyncService
}
// NewCompensationScheduler 创建补偿调度器实例
func NewCompensationScheduler() *CompensationScheduler {
return &CompensationScheduler{
syncService: sync.NewSyncService(),
syncService: syncdata.NewSyncService(),
}
}
@@ -130,14 +130,14 @@ func (s *CompensationScheduler) compensatePageTask(ctx context.Context, pageTask
pageSize := s.extractPageSize(pageTask)
req := &sync.AccountReportRequest{
req := &syncdata.AccountReportRequest{
AdvertiserID: pageTask.AdvertiserID,
StartTime: startTime.UnixMilli(),
EndTime: endTime.UnixMilli(),
SelectColumns: []string{"impression", "click", "cost", "t0GMV"},
GroupType: 1,
QueryVersion: 1,
PageInfo: &sync.PageInfo{
PageInfo: &syncdata.PageInfo{
CurrentPage: pageNumber,
PageSize: pageSize,
},