mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 07:50:25 +08:00
18 lines
519 B
Go
18 lines
519 B
Go
package repository
|
|
|
|
import (
|
|
"mayfly-go/internal/db/domain/entity"
|
|
"mayfly-go/pkg/model"
|
|
)
|
|
|
|
type DbBackup interface {
|
|
DbJob[*entity.DbBackup]
|
|
|
|
ListToDo(jobs any) error
|
|
ListDbInstances(enabled bool, repeated bool, instanceIds *[]uint64) error
|
|
GetDbNamesWithoutBackup(instanceId uint64, dbNames []string) ([]string, error)
|
|
|
|
// GetPageList 分页获取数据库任务列表
|
|
GetPageList(condition *entity.DbBackupQuery, pageParam *model.PageParam, toEntity any, orderBy ...string) (*model.PageResult[any], error)
|
|
}
|