lichunlei 7 месяцев назад
Родитель
Сommit
d1cd320a01
3 измененных файлов с 30 добавлено и 0 удалено
  1. 18 0
      Model/Database/ApiInfo.cs
  2. 11 0
      Services/IService/IApiGroupService.cs
  3. 1 0
      Util/Utils.cs

+ 18 - 0
Model/Database/ApiInfo.cs

@@ -208,5 +208,23 @@ namespace Model
         /// 关联参数
         /// 关联参数
         /// </summary>
         /// </summary>
         public List<ApiParamObject> linkParam { get; set; }
         public List<ApiParamObject> linkParam { get; set; }
+
+
+        /// <summary>
+        /// 关联参数数量
+        /// </summary>
+        public int linkParamCount { 
+            get 
+            {
+                if (linkParam != null)
+                {
+                    return linkParam.Count;
+                }
+                else
+                {
+                    return 0;
+                }
+            }
+        }
     }
     }
 }
 }

+ 11 - 0
Services/IService/IApiGroupService.cs

@@ -17,6 +17,17 @@ namespace Services
         PagedInfo<GetApiGroupListVo> getApiGroupList([FromQuery] PagerInfo page, [FromQuery] ApiGroup param);
         PagedInfo<GetApiGroupListVo> getApiGroupList([FromQuery] PagerInfo page, [FromQuery] ApiGroup param);
 
 
 
 
+        /// <summary>
+        /// 生成api文档
+        /// </summary>
+        /// <param name="serviceId">服务id</param>
+        Dictionary<string, object> makeApiDoc(int serviceId);
+
 
 
+        /// <summary>
+        /// 同步api到管理平台
+        /// </summary>
+        /// <param name="serviceId">服务id</param>
+        void sycnApiToSystem(int serviceId);
     }
     }
 }
 }

+ 1 - 0
Util/Utils.cs

@@ -1,5 +1,6 @@
 public class Utils
 public class Utils
 {
 {
+    public static Dictionary<string, string> FeignUrl = new Dictionary<string, string>();
     
     
     /// <summary>
     /// <summary>
     /// 写日志
     /// 写日志