using MadRunFabric.Common; using MongoDB.Bson.Serialization.Attributes; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace MadRunFabric.Model { public class Sys_ModuleButton_Info : IBaseModel { /// /// 自增id /// [Key] [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string id { get; set; } /// /// 菜单ID /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string moudle_id { get; set; } /// /// 父级节点ID /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string parent_id { get; set; } /// /// 层次 /// public int? layers { get; set; } /// /// 编码 /// public string encode { get; set; } /// /// 全名 /// public string full_name { get; set; } /// /// 图标 /// public string icon { get; set; } /// /// 位置 /// public int? location { get; set; } /// /// 前端JS事件名称 /// public string jsevent { get; set; } /// /// 后端地址 /// public string url_address { get; set; } /// /// 分隔符 /// public bool? split { get; set; } /// /// 排序 /// public int sort { get; set; } = 0; /// /// 功能状态-(0:不可以用;1:可用 2:表示删除) /// public int state_flag { get; set; } = 1; /// /// 备注 /// public string remark { get; set; } private DateTime _create_time; /// /// 创建时间 /// public DateTime create_time { set { _create_time = value.ToLocalTime(); } get { return _create_time.ToLocalTime(); } } private DateTime _lastmodify_time; /// /// 修改时间 /// public DateTime lastmodify_time { set { _lastmodify_time = value.ToLocalTime(); } get { return _lastmodify_time.ToLocalTime(); } } private DateTime _delete_time; /// /// 删除时间 /// public DateTime delete_time { set { _delete_time = value.ToLocalTime(); } get { return _delete_time.ToLocalTime(); } } /// /// 创建人 /// public string create_uid { get; set; } /// /// 修改人 /// public string lastmodify_uid { get; set; } /// /// 删除人 /// public string delete_uid { get; set; } } }