mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-31 03:46:34 +08:00
refactor: 消息模块重构,infra包路径简写等
This commit is contained in:
25
server/internal/db/infra/persistence/db_transfer_file.go
Normal file
25
server/internal/db/infra/persistence/db_transfer_file.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package persistence
|
||||
|
||||
import (
|
||||
"mayfly-go/internal/db/domain/entity"
|
||||
"mayfly-go/internal/db/domain/repository"
|
||||
"mayfly-go/pkg/base"
|
||||
"mayfly-go/pkg/model"
|
||||
)
|
||||
|
||||
type dbTransferFileRepoImpl struct {
|
||||
base.RepoImpl[*entity.DbTransferFile]
|
||||
}
|
||||
|
||||
func newDbTransferFileRepo() repository.DbTransferFile {
|
||||
return &dbTransferFileRepoImpl{}
|
||||
}
|
||||
|
||||
// 分页获取数据库信息列表
|
||||
func (d *dbTransferFileRepoImpl) GetPageList(condition *entity.DbTransferFileQuery, orderBy ...string) (*model.PageResult[*entity.DbTransferFile], error) {
|
||||
qd := model.NewCond().
|
||||
Eq("task_id", condition.TaskId).
|
||||
OrderByDesc("create_time")
|
||||
//Eq("status", condition.Status)
|
||||
return d.PageByCond(qd, condition.PageParam)
|
||||
}
|
||||
Reference in New Issue
Block a user