Documentation ¶
Index ¶
- type DbMap
- type Module
- type ModuleData
- type NullTime
- type Operation
- type OperationData
- type OperationPermissionManager
- type Permission
- type PermissionData
- type PermissionRoleManager
- type Role
- type RoleData
- type UserAccount
- type UserAccountData
- type UserEmail
- type UserEmailData
- type UserPassword
- type UserPasswordData
- type UserPersonalInformation
- type UserPersonalInformationData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbMap ¶
type DbMap struct { UserAccount UserAccount UserPassword UserPassword UserEmail UserEmail UserPersonalInformation UserPersonalInformation Module Module Operation Operation Permission Permission Role Role OperationPermissionManager OperationPermissionManager PermissionRoleManager PermissionRoleManager }
TbMap is a set of db mapping.
type Module ¶
type Module interface { Create(moduleData *ModuleData) error //missing model data GetByID(id uint64) (error, *ModuleData) DeleteByID(id uint64) error Update(ModuleData *ModuleData) error }
type Operation ¶
type Operation interface { Create(operationData *OperationData) error GetByID(id int64) (error, *OperationData) DeleteByID(id int64) error Update(OperationData *OperationData) error }
type OperationData ¶
type OperationPermissionManager ¶
type OperationPermissionManager interface { SetPermissionOperations(permissionID int64, operationIDs []int64) error AddPermissionOperations(permissionID int64, operationIDs []int64) error RemovePermissionOperations(permissionID int64, operationIDs []int64) error GetOperationPermissions(operationID int64) (error, []*PermissionData) GetPermissionOperations(permissionID int64) (error, []*OperationData) }
type Permission ¶
type Permission interface { Create(permissionData *PermissionData) error GetByID(id int64) (error, *PermissionData) DeleteByID(id int64) error Update(permissionData *PermissionData) error }
type PermissionData ¶
type PermissionRoleManager ¶
type PermissionRoleManager interface { SetRolePermissions(roleID int64, permissionsIDs []int64) error AddRolePermissions(roleID int64, permissionsIDs []int64) error RemoveRolePermissions(roleID int64, permissionsIDs []int64) error GetPermissionRoles(permissionID int64) (error, []*RoleData) GetRolePermissions(roleID int64) (error, []*PermissionData) }
type UserAccount ¶
type UserAccount interface { Create(userAccountData *UserAccountData) error GetByUsername(username string) (error, *UserAccountData) GetByID(id int64) (error, *UserAccountData) DeleteByID(id int64) error Update(userAccountData *UserAccountData) error }
type UserAccountData ¶
type UserEmail ¶
type UserEmail interface { Create(userEmailData *UserEmailData) error Update(userEmailData *UserEmailData) error DeleteByAddress(address string) error GetByAddress(address string) (error, *UserEmailData) }
type UserEmailData ¶
type UserPassword ¶
type UserPassword interface { Create(userPasswordData *UserPasswordData) error Update(userPasswordData *UserPasswordData) error DeleteByID(id int64) error GetByID(id int64) (error, *UserPasswordData) }
type UserPasswordData ¶
type UserPersonalInformation ¶
type UserPersonalInformation interface { Create(userPersonalInformation *UserPersonalInformation) error Update(userPersonalInformation *UserPersonalInformation) error DeleteById(id int64) error GetById(id int64) (error, *UserPersonalInformation) }
Click to show internal directories.
Click to hide internal directories.