lichunlei 3 месяцев назад
Родитель
Сommit
140407ddc8
2 измененных файлов с 29 добавлено и 0 удалено
  1. 9 0
      Controllers/Admin/DatabaseTableController.cs
  2. 20 0
      Model/Dto/Admin/GetTableListByIdsDto.cs

+ 9 - 0
Controllers/Admin/DatabaseTableController.cs

@@ -8,6 +8,7 @@ using Mapster;
 using Infrastructure;
 using Infrastructure;
 using Dto.Admin;
 using Dto.Admin;
 using Util;
 using Util;
+using Common;
 
 
 
 
 namespace Controllers.Admin
 namespace Controllers.Admin
@@ -147,6 +148,14 @@ namespace Controllers.Admin
             var response = _DatabaseTableService.getDatabaseTableListByIds(page, param);
             var response = _DatabaseTableService.getDatabaseTableListByIds(page, param);
             return SUCCESS(response);
             return SUCCESS(response);
         }
         }
+        [HttpGet]
+        [Route("/v1/omega_source/DatabaseTable/getTableListByIds")]
+        public IActionResult getTableListByIds([FromQuery] GetTableListByIdsDto param)
+        {
+            List<int> idList = Tools.SpitIntArrary(param.ids).ToList();
+            var response = _DatabaseTableService.GetList(m => idList.Contains(m.id)).ToList();
+            return SUCCESS(response);
+        }
 
 
 
 
 
 

+ 20 - 0
Model/Dto/Admin/GetTableListByIdsDto.cs

@@ -0,0 +1,20 @@
+using System;
+using System.ComponentModel.DataAnnotations;
+using Model.Base;
+
+namespace Dto.Admin
+{
+    /// <summary>
+    /// 添加
+    /// </summary>
+    public class GetTableListByIdsDto
+    {
+        /// <summary>
+        /// 服务ID
+        /// </summary>
+        public string ids { get; set; }
+
+
+
+    }
+}