Documentation ¶
Index ¶
- Constants
- Variables
- func NewAppUserGroupRepository(db *gorm.DB) service.AppUserGroupRepository
- func NewAppUserRepository(rf service.RepositoryFactory, db *gorm.DB) service.AppUserRepository
- func NewGroupUserRepository(db *gorm.DB) service.GroupUserRepository
- func NewOrganizationRepository(db *gorm.DB) service.OrganizationRepository
- func NewRBACRepository(db *gorm.DB) service.RBACRepository
- func NewRepositoryFactory(db *gorm.DB) (service.RepositoryFactory, error)
- func NewSpaceRepository(db *gorm.DB) service.SpaceRepository
- func NewUserSpaceRepository(rf service.RepositoryFactory, db *gorm.DB) service.UserSpaceRepository
Constants ¶
View Source
const SpaceTypeDefault = 1
View Source
const SpaceTypePersonal = 2
View Source
const SpaceTypeSystem = 3
Variables ¶
View Source
var ( AppUserTableName = "app_user" SystemOwnerLoginID = "system-owner" SystemStudentLoginID = "system-student" GuestLoginID = "guest" AdministratorRole = "Administrator" OwnerRole = "Owner" ManagerRole = "Manager" UserRole = "User" GuestRole = "Guest" UnknownRole = "Unknown" )
View Source
var (
AppUserGroupTableName = "app_user_group"
)
View Source
var (
GroupUserTableName = "group_user"
)
Functions ¶
func NewAppUserGroupRepository ¶
func NewAppUserGroupRepository(db *gorm.DB) service.AppUserGroupRepository
func NewAppUserRepository ¶
func NewAppUserRepository(rf service.RepositoryFactory, db *gorm.DB) service.AppUserRepository
func NewGroupUserRepository ¶
func NewGroupUserRepository(db *gorm.DB) service.GroupUserRepository
func NewOrganizationRepository ¶
func NewOrganizationRepository(db *gorm.DB) service.OrganizationRepository
func NewRBACRepository ¶
func NewRBACRepository(db *gorm.DB) service.RBACRepository
func NewRepositoryFactory ¶
func NewRepositoryFactory(db *gorm.DB) (service.RepositoryFactory, error)
func NewSpaceRepository ¶
func NewSpaceRepository(db *gorm.DB) service.SpaceRepository
func NewUserSpaceRepository ¶
func NewUserSpaceRepository(rf service.RepositoryFactory, db *gorm.DB) service.UserSpaceRepository
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.