mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
feat: 实现数据库备份与恢复
This commit is contained in:
14
server/internal/db/domain/service/db_restore.go
Normal file
14
server/internal/db/domain/service/db_restore.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user