repository

package
v0.0.0-...-d6791e1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RolePermissionRepository

type RolePermissionRepository struct {
	*sqlx.DB
	*sqlx.Tx
}

func (*RolePermissionRepository) CreateRolePermission

func (rpr *RolePermissionRepository) CreateRolePermission(roleId uuid.UUID, permissionCodes []string) error

func (*RolePermissionRepository) DeleteRolePermission

func (rpr *RolePermissionRepository) DeleteRolePermission(roleId uuid.UUID) error

type RoleRepository

type RoleRepository struct {
	*sqlx.DB
	*sqlx.Tx
}

func (*RoleRepository) CreateRole

func (rr *RoleRepository) CreateRole(r *reqdto.CreateRoleDto) (uuid.UUID, error)

func (*RoleRepository) DeleteRole

func (rr *RoleRepository) DeleteRole(roleId uuid.UUID) error

func (*RoleRepository) GetListRoles

func (rr *RoleRepository) GetListRoles(limit, offset int, search string) ([]*respdto.RoleGetListDto, error)

func (*RoleRepository) GetRoleById

func (rr *RoleRepository) GetRoleById(roleId uuid.UUID) (*model.Role, error)

func (*RoleRepository) GetRoleDetailById

func (rr *RoleRepository) GetRoleDetailById(roleId uuid.UUID) (*respdto.GetRoleByIdDto, error)

func (*RoleRepository) UpdateRole

func (rr *RoleRepository) UpdateRole(roleId uuid.UUID, r *reqdto.UpdateRoleDto) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL