|
|
@@ -8,6 +8,7 @@ using Vo.Admin;
|
|
|
using Common;
|
|
|
using Custom;
|
|
|
using Tasks;
|
|
|
+using Infrastructure;
|
|
|
|
|
|
|
|
|
namespace Services
|
|
|
@@ -50,7 +51,7 @@ namespace Services
|
|
|
/// 生成api文档
|
|
|
/// </summary>
|
|
|
/// <param name="serviceId">服务id</param>
|
|
|
- public void makeApiDoc(int serviceId, TokenModel loginUser)
|
|
|
+ public MakeApiDocVo makeApiDoc(int serviceId, TokenModel loginUser)
|
|
|
{
|
|
|
var service = Feign.IProject.getProjectService(serviceId);
|
|
|
var apiGroups = GetList(m => m.serviceId == serviceId);
|
|
|
@@ -66,7 +67,12 @@ namespace Services
|
|
|
pushData.Add("serviceTitle", service.serviceTitle);
|
|
|
pushData.Add("apiGroup", apiGroups);
|
|
|
pushData.Add("apiInfo", apiInfos);
|
|
|
- MakeHelper.Push(pushData, "apifoxDoc", "apidoc", loginUser.username);
|
|
|
+ MakeHelper.Push(pushData, "apifoxDoc", "apidoc", loginUser.username, service.id.ToString());
|
|
|
+ var options = App.OptionsSetting;
|
|
|
+ return new MakeApiDocVo()
|
|
|
+ {
|
|
|
+ docUrl = options.BaseConfigs.gatewayHost + "/v1/omega_make/StaticFile/apiDocQuery?id=" + service.id
|
|
|
+ };
|
|
|
}
|
|
|
|
|
|
/// <summary>
|