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

Method CreateMenu

internal/repository/menu.go:33–35  ·  view source on GitHub ↗

CreateMenu 创建新的菜单

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

Source from the content-addressed store, hash-verified

31
32// CreateMenu 创建新的菜单
33func (m *menuRepository) CreateMenu(ctx context.Context, menu *domain.Menu) error {
34 return m.dao.CreateMenu(ctx, m.menuToDAO(menu))
35}
36
37// GetMenuById 根据ID获取菜单
38func (m *menuRepository) GetMenuById(ctx context.Context, id int) (*domain.Menu, error) {

Callers

nothing calls this directly

Calls 2

menuToDAOMethod · 0.95
CreateMenuMethod · 0.65

Tested by

no test coverage detected