using Mapster;
using Vo;
namespace Model
{
///
/// api接口 api_info
///
[SugarTable("api_info", "api接口")]
[Tenant("0")]
public class ApiInfo
{
///
/// 分组
///
[SugarColumn(ColumnDescription = "分组", ColumnName = "group_id")]
public int groupId { get; set; }
///
/// 接口名称
///
[SugarColumn(ColumnDescription = "接口名称", Length = 50, ColumnName = "api_name")]
public string apiName { get; set; }
///
/// 接口关键字
///
[SugarColumn(ColumnDescription = "接口关键字", Length = 50, ColumnName = "api_key")]
public string apiKey { get; set; }
///
/// 接口主机头
///
[SugarColumn(ColumnDescription = "接口主机头", Length = 50, ColumnName = "api_host")]
public string apiHost { get; set; }
///
/// 接口端口号
///
[SugarColumn(ColumnDescription = "接口端口号", ColumnName = "api_port")]
public int apiPort { get; set; }
///
/// 接口路由
///
[SugarColumn(ColumnDescription = "接口路由", Length = 200, ColumnName = "api_router")]
public string apiRouter { get; set; }
///
/// 接口请求方式
///
[SugarColumn(ColumnDescription = "接口请求方式", Length = 10, ColumnName = "api_method")]
public string apiMethod { get; set; }
///
/// ID
///
[SugarColumn(ColumnDescription = "ID", IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
public int id { get; set; }
///
/// 状态
///
[SugarColumn(ColumnDescription = "状态", ColumnName = "status")]
public int status { get; set; }
///
/// 排序
///
[SugarColumn(ColumnDescription = "排序", ColumnName = "sort")]
public int sort { get; set; }
///
/// 版本号
///
[SugarColumn(ColumnDescription = "版本号", ColumnName = "version")]
public int version { get; set; }
///
/// 创建时间
///
[SugarColumn(ColumnDescription = "创建时间", ColumnName = "create_date")]
public DateTime? createDate { get; set; }
///
/// 更新时间
///
[SugarColumn(ColumnDescription = "更新时间", ColumnName = "update_date")]
public DateTime? updateDate { get; set; }
///
/// api接口分组
///
[SugarColumn(IsIgnore = true)]
[Navigate(NavigateType.OneToOne, nameof(groupId))]
public ApiGroup apiGroupJoin { get; set; }
[SugarColumn(IsIgnore = true)]
public ApiGroupVo apiGroupInfo
{
get
{
return apiGroupJoin.Adapt();
}
}
}
}