mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 07:50:25 +08:00
* feat: 删除数据库备份历史 * refactor dbScheduler * feat: 从数据库备份历史中恢复数据库 * feat: 删除数据库恢复历史记录 * refactor dbScheuler
19 lines
497 B
Go
19 lines
497 B
Go
package repository
|
|
|
|
import (
|
|
"mayfly-go/internal/db/domain/entity"
|
|
"mayfly-go/pkg/model"
|
|
)
|
|
|
|
type DbRestore interface {
|
|
DbJob
|
|
|
|
ListToDo(jobs any) error
|
|
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
|
|
}
|