代码拉取完成,页面将自动刷新
💢 特别说明:如果 Issue 没有严格按照模板编写且未提供测试源码下载或 Git 测试仓库地址,则视为无效
Issue
。
/// <inheritdoc cref="ISysUserService" />
[ApiDescriptionSettings(Name = "User", Order = 0)]
public class SysUserService : ISysUserService, IDynamicApiController
{
哪个版本号?
发生了什么?
异常堆栈是什么?
⚠⚠ 必须提供完整可运行且包含错误的
Git
仓库 DEMO,DEMO 提供最简单的错误逻辑代码,否则不予处理。⚠⚠
您的代码下载地址?
期待的结果是?
可以支持,下个版本就支持。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
已实现,今天发版更新。
v3.3.2版本已发布。
已支持 <inheritdoc />
写法,下个版本发布
v3.3.3 版本已发布
发现带参数的方法无法获取注释
感谢反馈,我彻底重写了这块了,现在支持所有类型,
using Furion.DynamicApiController;
namespace Furion.Application
{
/// <inheritdoc cref="ITestInheritdoc" />
public class TestInheritdoc : ITestInheritdoc, IDynamicApiController
{
/// <inheritdoc cref="ITestInheritdoc.GetName"/>
public string GetName()
{
return "Furion";
}
/// <inheritdoc />
public string GetVersion()
{
return "3.3.3";
}
/// <inheritdoc />
public string WithParams(string name)
{
throw new System.NotImplementedException();
}
/// <inheritdoc />
public string WithParams2(int id, string name)
{
throw new System.NotImplementedException();
}
/// <inheritdoc />
string ITestInheritdoc.Private(int id)
{
throw new System.NotImplementedException();
}
}
/// <summary>
/// 测试注释继承
/// </summary>
public interface ITestInheritdoc
{
/// <summary>
/// 获取名称
/// </summary>
/// <returns></returns>
string GetName();
/// <summary>
/// 获取版本
/// </summary>
/// <returns></returns>
string GetVersion();
/// <summary>
/// 携带参数
/// </summary>
/// <param name="name"></param>
/// <returns></returns>
string WithParams(string name);
/// <summary>
/// 携带参数二
/// </summary>
/// <param name="id"></param>
/// <param name="name"></param>
/// <returns></returns>
string WithParams2(int id, string name);
/// <summary>
/// 隐式实现接口
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
string Private(int id);
}
}
https://gitee.com/dotnetchina/Furion/commit/5e9e6ba06e404bcb14209c1423f312d3257912b8
非常感谢您再次对 <inheritdoc />
提出需求,现在彻底支持了所有情况,同时也改进了查找性能。
v3.4.1 版已经发布
牛,
好评,再也不愁重复写接口和实现类的注释了
发现在 summary 中使用 的 inheritdoc 没有被翻译
操作步骤
/// <summary>
/// test
/// </summary>
class A { }
/// <summary>
/// 登录 <inheritdoc cref="A"/>
/// </summary>
/// <param name="_httpContextAccessor"></param>
/// <param name="input"></param>
/// <returns></returns>
swagger的运行结果如图
然后VS的智能提示可以识别
登录 后才可以发表评论