using System;

namespace ServerApp.Pages
{
    public class ResourceDto
    {
        public ResourceDto()
        {
            Id = Guid.NewGuid().ToString();
        }
        public string Id { get; set; }
        /// <summary>
        /// 中文描述
        /// </summary> 
        public string DescZhCN { get; set; } = Guid.NewGuid().ToString();

        /// <summary>
        /// English
        /// </summary> 
        public string? DescEn { get; set; } = Guid.NewGuid().ToString();

        /// <summary>
        /// 繁體描述
        /// </summary> 
        public string? DescZh { get; set; } = Guid.NewGuid().ToString();

        /// <summary>
        /// 唯一标示
        /// </summary> 
        public string Key { get; set; } = Guid.NewGuid().ToString();

        /// <summary>
        /// 备注
        /// </summary> 
        public string? Remark { get; set; }

        /// <summary>
        /// 路径
        /// </summary> 
        public string? Path { get; set; }

        /// <summary>
        /// 图标
        /// </summary> 
        public string? Icon { get; set; }

        /// <summary>
        /// 次序
        /// </summary> 
        public int Order { get; set; }

        /// <summary>
        /// 父级编号
        /// </summary> 
        public string? ParentId { get; set; }

        /// <summary>
        /// 权限类型
        /// </summary> 
        public int Type { get; set; }
        public bool? IsLocked { get; set; }
        /// <summary>
        /// 是否逻辑删除
        /// </summary> 
        public bool? IsDeleted { get; set; }
        /// <summary>
        /// 创建人
        /// </summary> 
        public string CreatorId { get; set; }
        /// <summary>
        /// 最后更新
        /// </summary> 
        public string? LastUpdater { get; set; }
        /// <summary>
        /// 创建日期
        /// </summary> 
        public DateTimeOffset CreatedTime { get; set; } = DateTimeOffset.Now;
        /// <summary>
        /// 创建日期
        /// </summary> 
        public DateTimeOffset? UpdatedTime { get; set; } = DateTimeOffset.Now;
    }
}
