Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnableActionBundle ¶
type EnableActionBundle struct { EnableId string `gorm:"type:varchar(50);primary_key"` BindId string `gorm:"type:varchar(50);not null"` ActionBundleId string `gorm:"type:varchar(50);not null"` CreateTime time.Time }
func NewEnableActionBundle ¶
func NewEnableActionBundle(bindId, actionBundleId string) *EnableActionBundle
type ModuleApi ¶
type ModuleApi struct { ApiId string `gorm:"type:varchar(50);primary_key"` ModuleId string `gorm:"type:varchar(50);not null"` ModuleName string `gorm:"type:varchar(50);not null"` FeatureId string `gorm:"type:varchar(50);not null"` FeatureName string `gorm:"type:varchar(50);not null"` ActionBundleId string `gorm:"type:varchar(50);not null"` ActionBundleName string `gorm:"type:varchar(50);not null"` ApiMethod string `gorm:"type:varchar(50);not null"` ApiDescription string `gorm:"type:varchar(100);not null"` UrlMethod string `gorm:"type:varchar(100);not null"` Url string `gorm:"type:varchar(255);not null"` GlobalAdminActionBundleVisibility bool IsvActionBundleVisibility bool UserActionBundleVisibility bool }
func UniqueModuleApis ¶
type Role ¶
type Role struct { RoleId string `gorm:"type:varchar(50);primary_key"` RoleName string `gorm:"type:varchar(200);not null"` Description string `gorm:"type:varchar(200)"` Portal string `gorm:"type:varchar(50);not null"` Owner string `gorm:"type:varchar(50)"` OwnerPath string `gorm:"type:varchar(50)"` Status string `gorm:"type:varchar(50)"` Controller string `gorm:"type:varchar(50)"` CreateTime time.Time UpdateTime time.Time StatusTime time.Time }
func UniqueRoles ¶
type RoleModuleBinding ¶
type RoleModuleBinding struct { BindId string `gorm:"type:varchar(50);primary_key"` RoleId string `gorm:"type:varchar(50);not null"` ModuleId string `gorm:"type:varchar(50);not null"` DataLevel string `gorm:"type:varchar(50);not null"` IsCheckAll bool CreateTime time.Time }
func NewRoleModuleBinding ¶
func NewRoleModuleBinding(roleId, moduleId, dataLevel string, isCheckAll bool) *RoleModuleBinding
type RoleWithUser ¶
func (*RoleWithUser) ToPB ¶
func (p *RoleWithUser) ToPB() *pb.RoleWithUser
type UserRoleBinding ¶
type UserRoleBinding struct { Id string `gorm:"type:varchar(50);primary_key"` UserId string `gorm:"type:varchar(50);"` RoleId string `gorm:"type:varchar(50);"` CreateTime time.Time `gorm:"default CURRENT_TIMESTAMP"` }
func NewUserRoleBinding ¶
func NewUserRoleBinding(userId, roleId string) *UserRoleBinding
Click to show internal directories.
Click to hide internal directories.