You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.2 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace GDZZ.Core.Entity;
/// <summary>
/// 系统应用表
/// </summary>
[SugarTable("sys_app", TableDescription = "系统应用表")]
[Description("系统应用表")]
public class SysApp : DEntityBase
{
/// <summary>
/// 名称
/// </summary>
[Required, MaxLength(20)]
[SugarColumn(ColumnDescription = "名称")]
public string Name { get; set; }
/// <summary>
/// 编码
/// </summary>
[Required, MaxLength(50)]
[SugarColumn(ColumnDescription = "编码")]
public string Code { get; set; }
/// <summary>
/// 是否默认激活Y-是N-否),只能有一个系统默认激活
/// 用户登录后默认展示此系统菜单
/// </summary>
[MaxLength(5)]
[SugarColumn(ColumnDescription = "是否默认激活")]
public string Active { get; set; }
/// <summary>
/// 状态(字典 0正常 1停用 2删除
/// </summary>
[SugarColumn(ColumnDescription = "状态")]
public CommonStatus Status { get; set; } = CommonStatus.ENABLE;
/// <summary>
/// 排序
/// </summary>
[SugarColumn(ColumnDescription = "排序")]
public int Sort { get; set; }
}