using Mapster; using Util; namespace Model { /// /// 接口分组 api_group /// [SugarTable("api_group", "接口分组")] [Tenant("0")] public class ApiGroup { /// /// ID /// [SugarColumn(ColumnDescription = "ID", IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")] public int id { get; set; } /// /// 版本号 /// [SugarColumn(ColumnDescription = "版本号", ColumnName = "version")] public int version { get; set; } /// /// 删除标记 /// [SugarColumn(ColumnDescription = "删除标记", ColumnName = "del_flag")] public int delFlag { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnDescription = "创建时间", ColumnName = "create_time")] public DateTime? createTime { get; set; } /// /// 更新时间 /// [SugarColumn(ColumnDescription = "更新时间", ColumnName = "update_time")] public DateTime? updateTime { get; set; } /// /// 创建人 /// [SugarColumn(ColumnDescription = "创建人", Length = 32, ColumnName = "create_by")] public string? createBy { get; set; } /// /// 更新人 /// [SugarColumn(ColumnDescription = "更新人", Length = 32, ColumnName = "update_by")] public string? updateBy { get; set; } /// /// 服务ID /// [SugarColumn(ColumnDescription = "服务ID", ColumnName = "service_id")] public int serviceId { get; set; } /// /// 分组名称 /// [SugarColumn(ColumnDescription = "分组名称", Length = 100, ColumnName = "group_name")] public string? groupName { get; set; } [SugarColumn(IsIgnore = true)] public string? groupNameUpper { get { return PublicFunction.transferName(groupName, 1); } } /// /// 分组标题 /// [SugarColumn(ColumnDescription = "分组标题", Length = 50, ColumnName = "group_title")] public string? groupTitle { get; set; } /// /// 应用端ID /// [SugarColumn(ColumnDescription = "应用端ID", ColumnName = "app_id")] public int appId { get; set; } /// /// 包名 /// [SugarColumn(ColumnDescription = "包名", Length = 32, ColumnName = "package_name")] public string? packageName { get; set; } [SugarColumn(IsIgnore = true)] public string? packagePath { get { return packageName?.Replace(".", "/"); } } /// /// 控制器文件根目录 /// [SugarColumn(ColumnDescription = "控制器文件根目录", Length = 50, ColumnName = "controller_root_path")] public string? controllerRootPath { get; set; } } }