|
|
@@ -6,6 +6,8 @@ using Model.Base;
|
|
|
using Vo.Admin;
|
|
|
using Mapster;
|
|
|
using Infrastructure;
|
|
|
+using Dto.Admin;
|
|
|
+using SqlSugar.Extensions;
|
|
|
|
|
|
|
|
|
namespace Controllers.Admin
|
|
|
@@ -66,9 +68,10 @@ namespace Controllers.Admin
|
|
|
/// <returns>添加</returns>
|
|
|
[HttpPost]
|
|
|
[Route("/v1/omega_source/AppModule/addAppModule")]
|
|
|
- public IActionResult addAppModule([FromBody] AppModule param)
|
|
|
+ public IActionResult addAppModule([FromBody] EditAppModuleDto param)
|
|
|
{
|
|
|
var modal = param.Adapt<AppModule>().ToCreate(HttpContext);
|
|
|
+ modal.systemSupport = string.Join(",", param.systemSupport);
|
|
|
var response = _AppModuleService.InsertReturnIdentity(modal);
|
|
|
return SUCCESS(response);
|
|
|
}
|
|
|
@@ -81,9 +84,10 @@ namespace Controllers.Admin
|
|
|
/// <returns>修改</returns>
|
|
|
[HttpPut]
|
|
|
[Route("/v1/omega_source/AppModule/updateAppModule")]
|
|
|
- public IActionResult updateAppModule([FromBody] AppModule param)
|
|
|
+ public IActionResult updateAppModule([FromBody] EditAppModuleDto param)
|
|
|
{
|
|
|
var modal = param.Adapt<AppModule>().ToCreate(HttpContext);
|
|
|
+ modal.systemSupport = string.Join(",", param.systemSupport);
|
|
|
var response = _AppModuleService.Update(modal, true);
|
|
|
return SUCCESS(response);
|
|
|
}
|