mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 16:30:25 +08:00 
			
		
		
		
	
		
			
	
	
		
			22 lines
		
	
	
		
			623 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			22 lines
		
	
	
		
			623 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package repository
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import (
							 | 
						||
| 
								 | 
							
									"mayfly-go/internal/db/domain/entity"
							 | 
						||
| 
								 | 
							
									"mayfly-go/pkg/base"
							 | 
						||
| 
								 | 
							
									"mayfly-go/pkg/model"
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type DataSyncTask interface {
							 | 
						||
| 
								 | 
							
									base.Repo[*entity.DataSyncTask]
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									// 分页获取数据库实例信息列表
							 | 
						||
| 
								 | 
							
									GetTaskList(condition *entity.DataSyncTaskQuery, pageParam *model.PageParam, toEntity any, orderBy ...string) (*model.PageResult[any], error)
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type DataSyncLog interface {
							 | 
						||
| 
								 | 
							
									base.Repo[*entity.DataSyncLog]
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									// 分页获取数据库实例信息列表
							 | 
						||
| 
								 | 
							
									GetTaskLogList(condition *entity.DataSyncLogQuery, pageParam *model.PageParam, toEntity any, orderBy ...string) (*model.PageResult[any], error)
							 | 
						||
| 
								 | 
							
								}
							 |