mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 00:10:25 +08:00 
			
		
		
		
	refactor: 后端包结构重构、去除无用的文件
This commit is contained in:
		
							
								
								
									
										23
									
								
								server/internal/devops/domain/repository/machine.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								server/internal/devops/domain/repository/machine.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
package repository
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"mayfly-go/internal/devops/domain/entity"
 | 
			
		||||
	"mayfly-go/pkg/model"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type Machine interface {
 | 
			
		||||
	// 分页获取机器信息列表
 | 
			
		||||
	GetMachineList(condition *entity.Machine, pageParam *model.PageParam, toEntity interface{}, orderBy ...string) *model.PageResult
 | 
			
		||||
 | 
			
		||||
	Count(condition *entity.Machine) int64
 | 
			
		||||
 | 
			
		||||
	// 根据条件获取账号信息
 | 
			
		||||
	GetMachine(condition *entity.Machine, cols ...string) error
 | 
			
		||||
 | 
			
		||||
	// 根据id获取
 | 
			
		||||
	GetById(id uint64, cols ...string) *entity.Machine
 | 
			
		||||
 | 
			
		||||
	Create(entity *entity.Machine)
 | 
			
		||||
 | 
			
		||||
	UpdateById(entity *entity.Machine)
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user