mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 16:30:25 +08:00 
			
		
		
		
	
		
			
	
	
		
			23 lines
		
	
	
		
			491 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			23 lines
		
	
	
		
			491 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package repository
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import (
							 | 
						||
| 
								 | 
							
									"mayfly-go/base/model"
							 | 
						||
| 
								 | 
							
									"mayfly-go/server/devops/domain/entity"
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type Redis interface {
							 | 
						||
| 
								 | 
							
									// 分页获取机器信息列表
							 | 
						||
| 
								 | 
							
									GetRedisList(condition *entity.Redis, pageParam *model.PageParam, toEntity interface{}, orderBy ...string) *model.PageResult
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									// 根据id获取
							 | 
						||
| 
								 | 
							
									GetById(id uint64, cols ...string) *entity.Redis
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									GetRedis(condition *entity.Redis, cols ...string) error
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									Insert(redis *entity.Redis)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									Update(redis *entity.Redis)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									Delete(id uint64)
							 | 
						||
| 
								 | 
							
								}
							 |