Documentation
¶
Index ¶
Constants ¶
View Source
const SystemOwnerID = 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppUserModel ¶
type AppUserModel interface {
libdomain.BaseModel
GetAppUserID() AppUserID
GetOrganizationID() OrganizationID
GetLoginID() string
GetUsername() string
GetUserGroups() []UserGroupModel
}
func NewAppUserModel ¶
func NewAppUserModel(baseModel libdomain.BaseModel, appUserID AppUserID, organizationID OrganizationID, loginID, username string, userGroups []UserGroupModel) (AppUserModel, error)
type OrganizationID ¶
func NewOrganizationID ¶
func NewOrganizationID(value int) (OrganizationID, error)
type OrganizationModel ¶
type OrganizationModel interface {
libdomain.BaseModel
GetID() OrganizationID
GetName() string
}
func NewOrganizationModel ¶
func NewOrganizationModel(basemodel libdomain.BaseModel, organizationID OrganizationID, name string) (OrganizationModel, error)
type OwnerModel ¶
type OwnerModel interface {
AppUserModel
IsOwnerModel() bool
}
func NewOwnerModel ¶
func NewOwnerModel(appUser AppUserModel) (OwnerModel, error)
type RBACAction ¶
type RBACAction interface {
Action() string
}
func NewRBACAction ¶
func NewRBACAction(value string) RBACAction
type RBACDomain ¶
type RBACDomain interface {
Domain() string
}
func NewRBACDomain ¶
func NewRBACDomain(value string) RBACDomain
type RBACEffect ¶
type RBACEffect interface {
Effect() string
}
func NewRBACEffect ¶
func NewRBACEffect(value string) RBACEffect
type RBACObject ¶
type RBACObject interface {
Object() string
}
func NewRBACObject ¶
func NewRBACObject(value string) RBACObject
type RBACSubject ¶
type RBACSubject interface {
Subject() string
}
type SystemAdminModel ¶
func NewSystemAdminModel ¶
func NewSystemAdminModel() SystemAdminModel
type SystemOwnerModel ¶
type SystemOwnerModel interface {
OwnerModel
IsSystemOwnerModel() bool
}
func NewSystemOwnerModel ¶
func NewSystemOwnerModel(appUser OwnerModel) (SystemOwnerModel, error)
type UserGroupID ¶
func NewUserGroupID ¶
func NewUserGroupID(value int) (UserGroupID, error)
type UserGroupModel ¶
type UserGroupModel interface {
libdomain.BaseModel
GetUerGroupID() UserGroupID
GetOrganizationID() OrganizationID
GetKey() string
GetName() string
GetDescription() string
IsSystemGroup() bool
}
func NewUserGroupModel ¶
func NewUserGroupModel(baseModel libdomain.BaseModel, userGroupID UserGroupID, organizationID OrganizationID, key, name, description string) (UserGroupModel, error)
NewUserGroupModel returns a new UserGroupModel
Click to show internal directories.
Click to hide internal directories.