Ver Fonte

生成代码接口

lichunlei há 5 meses atrás
pai
commit
6fdbb7f31d
2 ficheiros alterados com 57 adições e 0 exclusões
  1. 39 0
      Controllers/Client/MakeCodeController.cs
  2. 18 0
      Model/Dto/Client/MakeCodeDto.cs

+ 39 - 0
Controllers/Client/MakeCodeController.cs

@@ -0,0 +1,39 @@
+using Vo;
+using Microsoft.AspNetCore.Mvc;
+using Model;
+using Services;
+using Model.Base;
+using Vo.Admin;
+using Mapster;
+using Infrastructure;
+using Dto.Client;
+
+
+namespace Controllers.Client
+{
+    public class MakeCodeController : BaseController
+    {
+        private readonly IDatabaseTableService _DatabaseTableService;
+
+
+        public MakeCodeController(IDatabaseTableService DatabaseTableService)
+        {
+            _DatabaseTableService = DatabaseTableService;
+
+        }
+
+        /// <summary>
+        /// 生成代码
+        /// </summary>
+        /// <param name="param">参数</param>
+        /// <returns>生成代码</returns>
+        [HttpPost]
+        [Route("/v1/omega_source/MakeCode/getMakeCodeList")]
+        public IActionResult getMakeCodeList([FromQuery] MakeCodeDto param)
+        {
+            
+            return SUCCESS("ok");
+        }
+
+    }
+}

+ 18 - 0
Model/Dto/Client/MakeCodeDto.cs

@@ -0,0 +1,18 @@
+using System;
+using System.ComponentModel.DataAnnotations;
+using Model.Base;
+
+namespace Dto.Client
+{
+    /// <summary>
+    /// 生成代码参数对象
+    /// </summary>
+    public class MakeCodeDto
+    {
+        /// <summary>
+        /// 服务ID
+        /// </summary>
+        public int serviceId { get; set; }
+
+    }
+}