mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	@@ -5,9 +5,9 @@ import "mayfly-go/pkg/model"
 | 
			
		||||
type Resource struct {
 | 
			
		||||
	model.Model
 | 
			
		||||
	Pid    int64  `json:"pid" gorm:"not null;comment:父节点id;"`
 | 
			
		||||
	UiPath string `json:"ui_path" gorm:"size:300;not null;comment:唯一标识路径;"` // 唯一标识路径
 | 
			
		||||
	Type   int8   `json:"type" gorm:"not null;comment:1:菜单路由;2:资源(按钮等);"`   // 1:菜单路由;2:资源(按钮等)
 | 
			
		||||
	Status int8   `json:"status" gorm:"not null;comment:状态;1:可用,-1:禁用;"`    // 1:可用;-1:不可用
 | 
			
		||||
	UiPath string `json:"ui_path" gorm:"size:300;comment:唯一标识路径;"`        // 唯一标识路径
 | 
			
		||||
	Type   int8   `json:"type" gorm:"not null;comment:1:菜单路由;2:资源(按钮等);"` // 1:菜单路由;2:资源(按钮等)
 | 
			
		||||
	Status int8   `json:"status" gorm:"not null;comment:状态;1:可用,-1:禁用;"`  // 1:可用;-1:不可用
 | 
			
		||||
	Code   string `json:"code" gorm:"size:300;comment:菜单路由为path,其他为唯一标识;"`
 | 
			
		||||
	Name   string `json:"name" gorm:"size:255;not null;"`
 | 
			
		||||
	Weight int    `json:"weight"`
 | 
			
		||||
 
 | 
			
		||||
@@ -10,9 +10,9 @@ type SysLog struct {
 | 
			
		||||
 | 
			
		||||
	Type        int8   `json:"type" gorm:"not null;"`
 | 
			
		||||
	Description string `json:"description" gorm:"size:255;"`
 | 
			
		||||
	ReqParam    string `json:"reqParam" gorm:"size:2000"` // 请求参数
 | 
			
		||||
	Resp        string `json:"resp" gorm:"type:text;"`    // 响应结构
 | 
			
		||||
	Extra       string `json:"extra" gorm:"type:text;"`   // 日志额外信息
 | 
			
		||||
	ReqParam    string `json:"reqParam" gorm:"type:text;"` // 请求参数
 | 
			
		||||
	Resp        string `json:"resp" gorm:"type:text;"`     // 响应结构
 | 
			
		||||
	Extra       string `json:"extra" gorm:"type:text;"`    // 日志额外信息
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (a *SysLog) TableName() string {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user