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

Method CreateRole

internal/service/role.go:19–19  ·  view source on GitHub ↗
(ctx context.Context, role *domain.Role, menuIds []int, apiIds []int)

Source from the content-addressed store, hash-verified

17
18type RoleService interface {
19 CreateRole(ctx context.Context, role *domain.Role, menuIds []int, apiIds []int) error
20 GetRoleById(ctx context.Context, id int) (*domain.Role, error)
21 UpdateRole(ctx context.Context, role *domain.Role) error
22 DeleteRole(ctx context.Context, id int) error

Callers 2

CreateRoleMethod · 0.65
CreateRoleMethod · 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