|
|
@@ -57,6 +57,7 @@ namespace Services
|
|
|
/// <param name="serviceId">服务id</param>
|
|
|
public MakeApiDocVo makeApiDoc(MakeApiDocDto param, TokenModel loginUser)
|
|
|
{
|
|
|
+ var tableService = App.GetService<IDatabaseTableService>();
|
|
|
var service = Feign.IProject.getProjectService(param.serviceId);
|
|
|
var apiGroups = GetList(m => m.serviceId == param.serviceId);
|
|
|
var apiInfos = _ApiInfoService.GetList(m => m.serviceId == param.serviceId);
|
|
|
@@ -69,6 +70,9 @@ namespace Services
|
|
|
{
|
|
|
apiInfo.groupTitle = apiGroups.FirstOrDefault(m => m.id == apiInfo.groupId).groupTitle;
|
|
|
apiInfo.groupName = apiGroups.FirstOrDefault(m => m.id == apiInfo.groupId).groupName;
|
|
|
+ var linkTable = tableService.GetFirst(m => m.id == apiInfo.linkTableId) ?? new DatabaseTable();
|
|
|
+ apiInfo.linkTableTitle = linkTable.tableTitle;
|
|
|
+ apiInfo.linkTableName = linkTable.tableName;
|
|
|
}
|
|
|
|
|
|
string id = service.id.ToString() + param.groupId.ToString();
|