...
|
...
|
@@ -32,15 +32,16 @@ func (menuService *MenuService) CreateMenu(createMenuCommand *command.CreateMenu |
|
|
transactionContext.RollbackTransaction()
|
|
|
}()
|
|
|
newMenu := &domain.Menu{
|
|
|
ParentId: createMenuCommand.ParentId,
|
|
|
MenuName: createMenuCommand.MenuName,
|
|
|
Code: createMenuCommand.Code,
|
|
|
AccessCode: createMenuCommand.AccessCode,
|
|
|
MenuType: createMenuCommand.MenuType,
|
|
|
Icon: createMenuCommand.Icon,
|
|
|
Sort: createMenuCommand.Sort,
|
|
|
Remark: createMenuCommand.Desc,
|
|
|
IsPublish: createMenuCommand.IsPublish,
|
|
|
ParentId: createMenuCommand.ParentId,
|
|
|
MenuName: createMenuCommand.MenuName,
|
|
|
Code: createMenuCommand.Code,
|
|
|
AccessCode: createMenuCommand.AccessCode,
|
|
|
MenuType: createMenuCommand.MenuType,
|
|
|
Icon: createMenuCommand.Icon,
|
|
|
Sort: createMenuCommand.Sort,
|
|
|
Remark: createMenuCommand.Desc,
|
|
|
IsPublish: createMenuCommand.IsPublish,
|
|
|
EnableStatus: createMenuCommand.EnableStatus,
|
|
|
}
|
|
|
var menuRepository domain.MenuRepository
|
|
|
if value, err := factory.CreateMenuRepository(map[string]interface{}{
|
...
|
...
|
|