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

Method UpdateRole

internal/repository/role.go:48–50  ·  view source on GitHub ↗

UpdateRole 更新角色信息

(ctx context.Context, role *domain.Role)

Source from the content-addressed store, hash-verified

46
47// UpdateRole 更新角色信息
48func (r *roleRepository) UpdateRole(ctx context.Context, role *domain.Role) error {
49 return r.dao.UpdateRole(ctx, r.roleToDAO(role))
50}
51
52// DeleteRole 删除角色
53func (r *roleRepository) DeleteRole(ctx context.Context, id int) error {

Callers

nothing calls this directly

Calls 2

roleToDAOMethod · 0.95
UpdateRoleMethod · 0.65

Tested by

no test coverage detected