Documentation ¶
Index ¶
- type MigratorPostgres
- type PermissionsPostgres
- func (r *PermissionsPostgres) Create(data []dto.CreatePermissionDTO) ([]entities.Permission, error)
- func (r *PermissionsPostgres) Delete(ids []uint64) error
- func (r *PermissionsPostgres) Search(data dto.SearchPermissionDTO) ([]entities.Permission, error)
- func (r *PermissionsPostgres) Update(data []dto.UpdatePermissionDTO) ([]entities.Permission, error)
- type ResourcesPostgres
- func (r *ResourcesPostgres) Create(data dto.CreateResourceDTO) (entities.Resource, error)
- func (r *ResourcesPostgres) Delete(id uint64) error
- func (r *ResourcesPostgres) Retrieve(id uint64) (entities.Resource, error)
- func (r *ResourcesPostgres) Search(data dto.SearchResourceDTO) ([]entities.Resource, error)
- func (r *ResourcesPostgres) Update(data dto.UpdateResourceDTO) (entities.Resource, error)
- type RolesPostgres
- func (r *RolesPostgres) Create(data dto.CreateRoleDTO) (entities.Role, error)
- func (r *RolesPostgres) Delete(id uint64) error
- func (r *RolesPostgres) Retrieve(id uint64) (entities.Role, error)
- func (r *RolesPostgres) Search(data dto.SearchRoleDTO) ([]entities.Role, error)
- func (r *RolesPostgres) Update(data dto.UpdateRoleDTO) (entities.Role, error)
- type UsersPostgres
- func (r *UsersPostgres) Create(data dto.CreateUserDTO) (entities.User, error)
- func (r *UsersPostgres) Delete(id uint64) error
- func (r *UsersPostgres) Retrieve(id uint64) (entities.User, error)
- func (r *UsersPostgres) Search(data dto.SearchUserDTO) ([]entities.User, error)
- func (r *UsersPostgres) Update(data dto.UpdateUserDTO) (entities.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MigratorPostgres ¶
type MigratorPostgres struct {
// contains filtered or unexported fields
}
func NewMigratorPostgres ¶
func NewMigratorPostgres(db *db.WrapperDB) *MigratorPostgres
func (*MigratorPostgres) Down ¶
func (r *MigratorPostgres) Down() error
func (*MigratorPostgres) Up ¶
func (r *MigratorPostgres) Up() error
type PermissionsPostgres ¶
type PermissionsPostgres struct {
// contains filtered or unexported fields
}
func NewPermissionsPostgres ¶
func NewPermissionsPostgres(db *db.WrapperDB) *PermissionsPostgres
func (*PermissionsPostgres) Create ¶
func (r *PermissionsPostgres) Create(data []dto.CreatePermissionDTO) ([]entities.Permission, error)
func (*PermissionsPostgres) Delete ¶
func (r *PermissionsPostgres) Delete(ids []uint64) error
func (*PermissionsPostgres) Search ¶
func (r *PermissionsPostgres) Search(data dto.SearchPermissionDTO) ([]entities.Permission, error)
func (*PermissionsPostgres) Update ¶
func (r *PermissionsPostgres) Update(data []dto.UpdatePermissionDTO) ([]entities.Permission, error)
type ResourcesPostgres ¶
type ResourcesPostgres struct {
// contains filtered or unexported fields
}
func NewResourcesPostgres ¶
func NewResourcesPostgres(db *db.WrapperDB) *ResourcesPostgres
func (*ResourcesPostgres) Create ¶
func (r *ResourcesPostgres) Create(data dto.CreateResourceDTO) (entities.Resource, error)
func (*ResourcesPostgres) Delete ¶
func (r *ResourcesPostgres) Delete(id uint64) error
func (*ResourcesPostgres) Retrieve ¶
func (r *ResourcesPostgres) Retrieve(id uint64) (entities.Resource, error)
func (*ResourcesPostgres) Search ¶
func (r *ResourcesPostgres) Search(data dto.SearchResourceDTO) ([]entities.Resource, error)
func (*ResourcesPostgres) Update ¶
func (r *ResourcesPostgres) Update(data dto.UpdateResourceDTO) (entities.Resource, error)
type RolesPostgres ¶
type RolesPostgres struct {
// contains filtered or unexported fields
}
func NewRolesPostgres ¶
func NewRolesPostgres(db *db.WrapperDB) *RolesPostgres
func (*RolesPostgres) Create ¶
func (r *RolesPostgres) Create(data dto.CreateRoleDTO) (entities.Role, error)
func (*RolesPostgres) Delete ¶
func (r *RolesPostgres) Delete(id uint64) error
func (*RolesPostgres) Search ¶
func (r *RolesPostgres) Search(data dto.SearchRoleDTO) ([]entities.Role, error)
func (*RolesPostgres) Update ¶
func (r *RolesPostgres) Update(data dto.UpdateRoleDTO) (entities.Role, error)
type UsersPostgres ¶
type UsersPostgres struct {
// contains filtered or unexported fields
}
func NewUsersPostgres ¶
func NewUsersPostgres(db *db.WrapperDB) *UsersPostgres
func (*UsersPostgres) Create ¶
func (r *UsersPostgres) Create(data dto.CreateUserDTO) (entities.User, error)
func (*UsersPostgres) Delete ¶
func (r *UsersPostgres) Delete(id uint64) error
func (*UsersPostgres) Search ¶
func (r *UsersPostgres) Search(data dto.SearchUserDTO) ([]entities.User, error)
func (*UsersPostgres) Update ¶
func (r *UsersPostgres) Update(data dto.UpdateUserDTO) (entities.User, error)
Click to show internal directories.
Click to hide internal directories.