Some checks failed
		
		
	
	Build / build (push) Has been cancelled
				
			CodeQL / Analyze (go) (push) Has been cancelled
				
			build / Build (push) Has been cancelled
				
			GitHub Actions Mirror / mirror_to_gitee (push) Has been cancelled
				
			GitHub Actions Mirror / mirror_to_gitlab (push) Has been cancelled
				
			Issue Close Require / issue-close-require (push) Has been cancelled
				
			Issue Check Inactive / issue-check-inactive (push) Has been cancelled
				
			
		
			
				
	
	
		
			20 lines
		
	
	
		
			939 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			939 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package models
 | 
						|
 | 
						|
type SysRole struct {
 | 
						|
	RoleId    int       `json:"roleId" gorm:"primaryKey;autoIncrement"` // 角色编码
 | 
						|
	RoleName  string    `json:"roleName" gorm:"size:128;"`              // 角色名称
 | 
						|
	Status    string    `json:"status" gorm:"size:4;"`                  //
 | 
						|
	RoleKey   string    `json:"roleKey" gorm:"size:128;"`               //角色代码
 | 
						|
	RoleSort  int       `json:"roleSort" gorm:""`                       //角色排序
 | 
						|
	Flag      string    `json:"flag" gorm:"size:128;"`                  //
 | 
						|
	Remark    string    `json:"remark" gorm:"size:255;"`                //备注
 | 
						|
	Admin     bool      `json:"admin" gorm:"size:4;"`
 | 
						|
	DataScope string    `json:"dataScope" gorm:"size:128;"`
 | 
						|
	SysMenu   []SysMenu `json:"sysMenu" gorm:"many2many:sys_role_menu;foreignKey:RoleId;joinForeignKey:role_id;references:MenuId;joinReferences:menu_id;"`
 | 
						|
	ControlBy
 | 
						|
	ModelTime
 | 
						|
}
 | 
						|
 | 
						|
func (SysRole) TableName() string {
 | 
						|
	return "sys_role"
 | 
						|
} |