【优化】Swagger生成model类库xml,增加实体Schema下提交参数实体注释说明

This commit is contained in:
大灰灰
2023-01-02 16:49:50 +08:00
parent 1dbfc429e5
commit 8162967b74
8 changed files with 13330 additions and 27 deletions

View File

@@ -49,8 +49,12 @@ namespace CoreCms.Net.Core.Config
{
//生成API XML文档
var basePath = AppContext.BaseDirectory;
var xmlPath = Path.Combine(basePath, "doc.xml");
var xmlPath = Path.Combine(basePath, "CoreCms.Net.Web.Admin.xml");
s.IncludeXmlComments(xmlPath);
var xmlModelPath = Path.Combine(basePath, "CoreCms.Net.Model.xml");
s.IncludeXmlComments(xmlModelPath);
}
catch (Exception ex)
{
@@ -101,8 +105,12 @@ namespace CoreCms.Net.Core.Config
{
//生成API XML文档
var basePath = AppContext.BaseDirectory;
var xmlPath = Path.Combine(basePath, "doc.xml");
var xmlPath = Path.Combine(basePath, "CoreCms.Net.Web.WebApi.xml");
s.IncludeXmlComments(xmlPath);
var xmlModelPath = Path.Combine(basePath, "CoreCms.Net.Model.xml");
s.IncludeXmlComments(xmlModelPath);
}
catch (Exception ex)
{