mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 16:13:26 +08:00
【优化】Swagger生成model类库xml,增加实体Schema下提交参数实体注释说明
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user