Files
mayfly-go/server/internal/db/domain/repository/db_restore.go

19 lines
516 B
Go
Raw Normal View History

2023-12-27 22:59:20 +08:00
package repository
import (
"mayfly-go/internal/db/domain/entity"
"mayfly-go/pkg/model"
)
2023-12-27 22:59:20 +08:00
type DbRestore interface {
DbJob[*entity.DbRestore]
2023-12-27 22:59:20 +08:00
ListToDo(jobs any) error
2023-12-27 22:59:20 +08:00
GetDbNamesWithoutRestore(instanceId uint64, dbNames []string) ([]string, error)
// GetPageList 分页获取数据库任务列表
GetPageList(condition *entity.DbRestoreQuery, pageParam *model.PageParam, toEntity any, orderBy ...string) (*model.PageResult[any], error)
GetEnabledRestores(toEntity any, backupHistoryId ...uint64) error
2023-12-27 22:59:20 +08:00
}