mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-20 00:00:27 +08:00
feat: 实现数据库备份和恢复并发调度 (#84)
This commit is contained in:
@@ -1,16 +1,7 @@
|
||||
package repository
|
||||
|
||||
import (
|
||||
"context"
|
||||
"mayfly-go/internal/db/domain/entity"
|
||||
"mayfly-go/pkg/model"
|
||||
)
|
||||
|
||||
type DbBackup interface {
|
||||
DbTask[*entity.DbBackup]
|
||||
DbJob
|
||||
|
||||
// GetDbBackupList 分页获取数据信息列表
|
||||
GetDbBackupList(condition *entity.DbBackupQuery, pageParam *model.PageParam, toEntity any, orderBy ...string) (*model.PageResult[any], error)
|
||||
AddTask(ctx context.Context, tasks ...*entity.DbBackup) error
|
||||
GetDbNamesWithoutBackup(instanceId uint64, dbNames []string) ([]string, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user