MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / GetRoleById

Method GetRoleById

internal/repository/role.go:13–13  ·  view source on GitHub ↗
(ctx context.Context, id int)

Source from the content-addressed store, hash-verified

11type RoleRepository interface {
12 CreateRole(ctx context.Context, role *domain.Role, menuIds []int, apiIds []int) error
13 GetRoleById(ctx context.Context, id int) (*domain.Role, error)
14 UpdateRole(ctx context.Context, role *domain.Role) error
15 DeleteRole(ctx context.Context, id int) error
16 ListRoles(ctx context.Context, page, pageSize int) ([]*domain.Role, int, error)

Callers 1

GetRoleByIdMethod · 0.65

Implementers 3

roleServiceinternal/service/role.go
roleRepositoryinternal/repository/role.go
roleDAOinternal/repository/dao/role.go

Calls

no outgoing calls

Tested by

no test coverage detected