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