mirror of
				https://github.com/1Panel-dev/1Panel.git
				synced 2025-11-04 23:36:09 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			627 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			627 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package model
 | 
						|
 | 
						|
import (
 | 
						|
	"time"
 | 
						|
)
 | 
						|
 | 
						|
type OperationLog struct {
 | 
						|
	BaseModel
 | 
						|
	Source    string `json:"source"`
 | 
						|
	IP        string `json:"ip"`
 | 
						|
	Path      string `json:"path"`
 | 
						|
	Method    string `json:"method"`
 | 
						|
	UserAgent string `json:"userAgent"`
 | 
						|
 | 
						|
	Latency time.Duration `json:"latency"`
 | 
						|
	Status  string        `json:"status"`
 | 
						|
	Message string        `json:"message"`
 | 
						|
 | 
						|
	DetailZH string `json:"detailZH"`
 | 
						|
	DetailEN string `json:"detailEN"`
 | 
						|
}
 | 
						|
 | 
						|
type LoginLog struct {
 | 
						|
	BaseModel
 | 
						|
	IP      string `json:"ip"`
 | 
						|
	Address string `json:"address"`
 | 
						|
	Agent   string `json:"agent"`
 | 
						|
	Status  string `json:"status"`
 | 
						|
	Message string `json:"message"`
 | 
						|
}
 |