2023-12-27 22:59:20 +08:00
|
|
|
package repository
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
"mayfly-go/internal/db/domain/entity"
|
|
|
|
|
"mayfly-go/pkg/model"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type DbBackup interface {
|
2024-01-05 08:55:34 +08:00
|
|
|
DbTask[*entity.DbBackup]
|
2023-12-27 22:59:20 +08:00
|
|
|
|
|
|
|
|
// 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)
|
|
|
|
|
}
|