Browse Source

关联服务器接口

lichunlei 8 tháng trước cách đây
mục cha
commit
607523e378

+ 13 - 0
Controllers/Admin/ProjectServiceController.cs

@@ -116,6 +116,19 @@ namespace Controllers.Admin
         }
 
 
+        /// <summary>
+        /// 关联服务器
+        /// </summary>
+        /// <param name="param">参数请求体</param>
+        /// <returns>关联服务器</returns>
+        [HttpPost]
+        [Route("/v1/omega_project/ProjectService/linkProjectServer")]
+        public IActionResult linkProjectServer([FromBody] LinkProjectServerDto param)
+        {
+            return SUCCESS("ok");
+        }
+
+
 
 
     }

+ 32 - 0
Model/Dto/Admin/LinkProjectServerDto.cs

@@ -0,0 +1,32 @@
+using System;
+using System.ComponentModel.DataAnnotations;
+using Model.Base;
+
+namespace Dto.Admin
+{
+    /// <summary>
+    /// 关联服务器
+    /// </summary>
+    public class LinkProjectServerDto
+    {
+        /// <summary>
+        /// 服务器
+        /// </summary>
+        public string? serverList { get; set; }
+
+
+        /// <summary>
+        /// 项目ID
+        /// </summary>
+        public int projectId { get; set; }
+
+
+        /// <summary>
+        /// 服务ID
+        /// </summary>
+        public int serviceId { get; set; }
+
+
+
+    }
+}