Documentation ¶
Index ¶
- func CreateRole(role *reqdto.CreateRoleDto) (err error)
- func DeleteRole(roleId uuid.UUID) (err error)
- func GetListRoles(criteria *reqdto.GetListRolesDto) ([]*respdto.RoleGetListDto, error)
- func GetRoleById(roleId uuid.UUID) (*respdto.GetRoleByIdDto, error)
- func IntersectPermissionCodeExisted(permissions []*reqdto.CreateRolePermissionDto, ...) []string
- func UpdateRole(roleId uuid.UUID, role *reqdto.UpdateRoleDto) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRole ¶
func CreateRole(role *reqdto.CreateRoleDto) (err error)
func DeleteRole ¶
func GetListRoles ¶
func GetListRoles(criteria *reqdto.GetListRolesDto) ([]*respdto.RoleGetListDto, error)
func GetRoleById ¶
func GetRoleById(roleId uuid.UUID) (*respdto.GetRoleByIdDto, error)
func IntersectPermissionCodeExisted ¶
func IntersectPermissionCodeExisted(permissions []*reqdto.CreateRolePermissionDto, existedPermissions []*model.Permission) []string
func UpdateRole ¶
func UpdateRole(roleId uuid.UUID, role *reqdto.UpdateRoleDto) (err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.