using System.Collections.Generic;
namespace WingCloudServer.GeneralDocTools.Model
{
///
/// 注释实体
///
public class MemberEntity
{
///
/// 参数名
///
public string ParamName { get; set; } = string.Empty;
///
/// 注释
///
public string Summary { get; set; } = string.Empty;
///
/// 方法注释用:返回内容的默认值,当返回简单类型时【bool,int,string等等】,默认值必填,如果非简单类型,则非不填;
///
public string Value { get; set; } = string.Empty;
///
/// 参数对象实体
///
public List Param { get; set; } = new List();
///
/// 返回描述
///
public string Returns { get; set; } = string.Empty;
///
/// 代码 | 错误描述 :这个内容必须按照此格式进行记录,用于生成文档时,枚举表格的抬头;
///
public string Remarks { get; set; } = string.Empty;
///
/// 类注释:显示为该属性是否是必填项,当前1-表示必填,0-表示非必填,默认必填
///
public string Code { get; set; } = "1";
///
/// 类注释:此项为非必填项,当这个方法与接口上声明的调用端不一致时,用来指定特殊的一级目录;
///
public string DocFirstDirectory { get; set; } = "";
///
/// 类注释:此项为非必填项,当这个方法与接口上声明的二级目录不一致时,用来指定特殊的二级目录;
///
public string DocSecondDirectory { get; set; } = "";
///
/// 类注释:此项为非必填项,当这个方法与接口上声明的三级目录不一致时,用来指定特殊的三级目录;
///
public string DocThirdDirectory { get; set; } = "";
///
/// 枚举注释: 用来显示枚举信息;
///
public string EnumDocFirstDirectory { get; set; } = "";
///
/// 通知注释: 用来显示通知信息;
///
public string NotificationDocFirstDirectory { get; set; } = "";
///
/// 通知注释:此项为非必填项,当这个方法与接口上声明的二级目录不一致时,用来指定特殊的二级目录;
///
public string NotificationDocSecondDirectory { get; set; } = "";
///
/// 通知注释:此项为非必填项,当这个方法与接口上声明的三级目录不一致时,用来指定特殊的二级目录;
///
public string NotificationDocThirdDirectory { get; set; } = "";
///
/// 表示接口中可能会返回的错误码,中间以逗号相隔;非必填
///
public string ErrorCodes { get; set; } = "";
///
/// 类注释:false表示此方法不在文档中展示,true表示在文档展示,默认此标签可不加-此时值为true;注:若接口和方法同时出现此标签,以false值为最优先级;
///
public bool Show { get; set; } = true;
}
///
/// 参数实体
///
public class ParamEntity
{
///
/// 参数名称
///
public string ParamName { get; set; } = string.Empty;
///
/// 参数值
///
public string ParamText { get; set; } = string.Empty;
}
///
/// 查询遍历不同接口下的方法
///
public class QueryMethodMemberEntity
{
///
/// 一级目录
///
public string DocFirstDirectory { get; set; } = "";
///
/// 二级目录
///
public string DocSecondDirectory { get; set; } = "";
///
/// 三级目录
///
public string DocThirdDirectory { get; set; } = "";
///
/// 通知注释: 一级目录;
///
public string NotificationDocFirstDirectory { get; set; } = "";
///
/// 通知注释:二级目录;
///
public string NotificationDocSecondDirectory { get; set; } = "";
///
/// 通知注释:三级目录;
///
public string NotificationDocThirdDirectory { get; set; } = "";
public int DirectoryType { get; set; } = 2;
///
/// 方法类
///
public MemberEntity MethodInfo { get; set; } = new MemberEntity();
///
/// 接口类型
///
public Type InterfaceType { get; set; }
///
/// 接口信息
///
public InterfaceBasicInfoEntity InterfaceEntity { get; set; } = new InterfaceBasicInfoEntity();
}
public class BaseEntity
{
///
/// key值
///
public string Key { get; set; } = "";
///
/// value值
///
public string Value { get; set; } = "";
}
}