mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	feat: 代码结构优化
This commit is contained in:
		@@ -5,7 +5,7 @@ import (
 | 
			
		||||
	"mayfly-go/base/biz"
 | 
			
		||||
	"mayfly-go/base/global"
 | 
			
		||||
	"mayfly-go/base/utils"
 | 
			
		||||
	"mayfly-go/devops/models"
 | 
			
		||||
	"mayfly-go/devops/domain/entity"
 | 
			
		||||
	"time"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@@ -24,8 +24,8 @@ func (c *Cli) GetSystemInfo() (*string, error) {
 | 
			
		||||
	return c.Run(getShellContent("system_info"))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *Cli) GetMonitorInfo() *models.MachineMonitor {
 | 
			
		||||
	mm := new(models.MachineMonitor)
 | 
			
		||||
func (c *Cli) GetMonitorInfo() *entity.MachineMonitor {
 | 
			
		||||
	mm := new(entity.MachineMonitor)
 | 
			
		||||
	res, _ := c.Run(getShellContent("monitor"))
 | 
			
		||||
	if res == nil {
 | 
			
		||||
		return nil
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user