/// <summary> /// 新增 /// </summary> /// <param name="input"></param> /// <returns></returns> public async Task <JsonResponse> Create(RoleMenuRequestDto input) { input.InitCreateRequest(); var resJson = await _applicationEnginee.TryTransactionAsync(async() => { await _roleMenuAppService.CreateAsync(input); }); return(resJson); }
/// <summary> /// 保存角色菜单权限 /// </summary> /// <param name="input"></param> /// <returns></returns> public async Task <JsonResponse> SaveRoleMenu(RoleMenuRequestDto input) { input.InitCreateRequest(); input.InitModifyRequest(); return(await _menuDomainService.SaveRoleMenu(input)); }