2023-12-27 22:59:20 +08:00
|
|
|
package repository
|
|
|
|
|
|
2024-01-17 08:37:22 +00:00
|
|
|
import (
|
|
|
|
|
"mayfly-go/internal/db/domain/entity"
|
|
|
|
|
"mayfly-go/pkg/model"
|
|
|
|
|
)
|
|
|
|
|
|
2023-12-27 22:59:20 +08:00
|
|
|
type DbBackup interface {
|
2024-01-11 11:35:51 +08:00
|
|
|
DbJob
|
2023-12-27 22:59:20 +08:00
|
|
|
|
2024-01-17 08:37:22 +00:00
|
|
|
ListToDo(jobs any) error
|
|
|
|
|
ListDbInstances(enabled bool, repeated bool, instanceIds *[]uint64) error
|
2023-12-27 22:59:20 +08:00
|
|
|
GetDbNamesWithoutBackup(instanceId uint64, dbNames []string) ([]string, error)
|
2024-01-17 08:37:22 +00:00
|
|
|
|
|
|
|
|
// GetPageList 分页获取数据库任务列表
|
|
|
|
|
GetPageList(condition *entity.DbJobQuery, pageParam *model.PageParam, toEntity any, orderBy ...string) (*model.PageResult[any], error)
|
2023-12-27 22:59:20 +08:00
|
|
|
}
|