feat: 实现数据库备份与恢复

This commit is contained in:
kanzihuang
2023-12-27 22:59:20 +08:00
committed by wanli
parent 1a7d425f60
commit e344722794
92 changed files with 5997 additions and 69 deletions

View File

@@ -0,0 +1,14 @@
package service
import (
"context"
"mayfly-go/internal/db/domain/entity"
)
type DbRestoreSvc interface {
AddTask(ctx context.Context, tasks ...*entity.DbRestore) error
UpdateTask(ctx context.Context, task *entity.DbRestore) error
DeleteTask(ctx context.Context, taskId uint64) error
EnableTask(ctx context.Context, taskId uint64) error
DisableTask(ctx context.Context, taskId uint64) error
}