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

Method UpdateMenu

internal/repository/menu.go:47–49  ·  view source on GitHub ↗

UpdateMenu 更新菜单信息

(ctx context.Context, menu *domain.Menu)

Source from the content-addressed store, hash-verified

45
46// UpdateMenu 更新菜单信息
47func (m *menuRepository) UpdateMenu(ctx context.Context, menu *domain.Menu) error {
48 return m.dao.UpdateMenu(ctx, m.menuToDAO(menu))
49}
50
51// DeleteMenu 删除菜单
52func (m *menuRepository) DeleteMenu(ctx context.Context, id int) error {

Callers

nothing calls this directly

Calls 2

menuToDAOMethod · 0.95
UpdateMenuMethod · 0.65

Tested by

no test coverage detected