Przeglądaj źródła

修改参数serviceId为serverId

lichunlei 4 miesięcy temu
rodzic
commit
eb0e375c7b

+ 2 - 2
Controllers/Client/MakeCodeController.cs

@@ -44,7 +44,7 @@ namespace Controllers.Client
                 TokenModel loginUser = JwtUtil.GetLoginUser(HttpContext);
                 Function.WriteLog(loginUser.username, "测试生成代码");
                 Function.WriteLog(Newtonsoft.Json.JsonConvert.SerializeObject(param), "测试生成代码");
-                ProjectService baseInfo = IProject.getProjectService(param.serviceId);
+                ProjectService baseInfo = IProject.getProjectService(param.serverId);
                 string versionNo = baseInfo.devLanguage + "-" + DateTime.Now.ToString("yyyyMMddHHmmssfff");
                 Function.WriteLog(Newtonsoft.Json.JsonConvert.SerializeObject(baseInfo), "测试生成代码");
                 List<int> databaseIds = Tools.SpitIntArrary(baseInfo.databaseList).ToList();
@@ -62,7 +62,7 @@ namespace Controllers.Client
                         _DatabaseTableService.makeJavaMapperXml(baseInfo, table, loginUser, versionNo);
                     }
                 }
-                var apiGroups = _ApiGroupService.GetList(a => a.serviceId == param.serviceId);
+                var apiGroups = _ApiGroupService.GetList(a => a.serviceId == param.serverId);
                 Function.WriteLog("apiGroups:" + apiGroups.Count.ToString(), "测试生成代码");
                 foreach(var apiGroup in apiGroups)
                 {

+ 1 - 1
Model/Dto/Client/MakeCodeDto.cs

@@ -12,7 +12,7 @@ namespace Dto.Client
         /// <summary>
         /// 服务ID
         /// </summary>
-        public int serviceId { get; set; }
+        public int serverId { get; set; }
 
     }
 }