Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CasbinRule ¶
type CasbinRule struct { Id uint32 `json:"id" gorm:"column:id"` Ptype string `json:"ptype" gorm:"column:ptype"` V0 string `json:"v0" gorm:"column:v0"` V1 string `json:"v1" gorm:"column:v1"` V2 string `json:"v2" gorm:"column:v2"` V3 string `json:"v3" gorm:"column:v3"` V4 string `json:"v4" gorm:"column:v4"` V5 string `json:"v5" gorm:"column:v5"` }
type Department ¶
type DepartmentClosure ¶
type Dictionary ¶
type DictionaryValue ¶
type DictionaryValue struct { DictionaryId uint32 `json:"dictionaryId" gorm:"column:dictionary_id"` Label string `json:"label" gorm:"column:label"` Value string `json:"value" gorm:"column:value"` Status *bool `json:"status" gorm:"column:status"` Weight *int32 `json:"weight" gorm:"column:weight"` Type *string `json:"type" gorm:"column:type"` Extra *string `json:"extra" gorm:"column:extra"` Description *string `json:"description" gorm:"column:description"` Dictionary *Dictionary //fixed code types.BaseModel }
type Menu ¶
type Menu struct { ParentId uint32 `json:"parentId" gorm:"column:parent_id"` Title string `json:"title" gorm:"column:title"` Type string `json:"type" gorm:"column:type"` Keyword *string `json:"keyword" gorm:"column:keyword"` Icon *string `json:"icon" gorm:"column:icon"` Api *string `json:"api" gorm:"column:api"` Method *string `json:"method" gorm:"column:method"` Path *string `json:"path" gorm:"column:path"` Permission *string `json:"permission" gorm:"column:permission"` Component *string `json:"component" gorm:"column:component"` Redirect *string `json:"redirect" gorm:"column:redirect"` Weight *int32 `json:"weight" gorm:"column:weight"` IsHidden *bool `json:"isHidden" gorm:"column:is_hidden"` IsCache *bool `json:"isCache" gorm:"column:is_cache"` IsHome *bool `json:"isHome" gorm:"column:is_home"` IsAffix *bool `json:"isAffix" gorm:"column:is_affix"` types.BaseModel }
type MenuClosure ¶
type Role ¶
type Role struct { ParentId uint32 `json:"parentId" gorm:"column:parent_id"` Name string `json:"name" gorm:"column:name"` Keyword string `json:"keyword" gorm:"column:keyword"` Status *bool `json:"status" gorm:"column:status"` DataScope string `json:"dataScope" gorm:"column:data_scope"` DepartmentIds *string `json:"departmentIds" gorm:"column:department_ids"` Description *string `json:"description" gorm:"column:description"` types.BaseModel }
type RoleClosure ¶
type User ¶
type User struct { DepartmentId uint32 `json:"departmentId" gorm:"column:department_id"` RoleId uint32 `json:"roleId" gorm:"column:role_id"` Name string `json:"name" gorm:"column:name"` Nickname string `json:"nickname" gorm:"column:nickname"` Gender string `json:"gender" gorm:"column:gender"` Avatar *string `json:"avatar" gorm:"column:avatar"` Phone string `json:"phone" gorm:"column:phone"` Email string `json:"email" gorm:"column:email"` Password string `json:"password" gorm:"column:password"` Status *bool `json:"status" gorm:"column:status"` Setting *string `json:"setting" gorm:"column:setting"` Token *string `json:"token" gorm:"column:token"` LoggedAt int64 `json:"loggedAt" gorm:"column:logged_at"` UserJobs []*UserJob `json:"userJobs"` UserRoles []*UserRole `json:"userRoles"` Roles []*Role `json:"roles" gorm:"many2many:user_role"` // fixed code Jobs []*Job `json:"jobs" gorm:"many2many:user_job"` Department *Department `json:"department"` Role *Role `json:"role"` types.BaseModel }
Click to show internal directories.
Click to hide internal directories.