mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	
		
			
	
	
		
			15 lines
		
	
	
		
			398 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			15 lines
		
	
	
		
			398 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package service
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import (
							 | 
						||
| 
								 | 
							
									"context"
							 | 
						||
| 
								 | 
							
									"mayfly-go/internal/db/domain/entity"
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type DbBackupSvc interface {
							 | 
						||
| 
								 | 
							
									AddTask(ctx context.Context, tasks ...*entity.DbBackup) error
							 | 
						||
| 
								 | 
							
									UpdateTask(ctx context.Context, task *entity.DbBackup) error
							 | 
						||
| 
								 | 
							
									DeleteTask(ctx context.Context, taskId uint64) error
							 | 
						||
| 
								 | 
							
									EnableTask(ctx context.Context, taskId uint64) error
							 | 
						||
| 
								 | 
							
									DisableTask(ctx context.Context, taskId uint64) error
							 | 
						||
| 
								 | 
							
								}
							 |