using MadRunFabric.Common;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace MadRunFabric.Model
{
///
/// 1、重要事项
/// 2、公告管理 - 省三院
///
public class Sys_News : IBaseModel
{
///
/// id
///
[Key]
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string id { get; set; }
///
/// 省code
///
public string province { get; set; }
///
/// 市code
///
public string city { get; set; }
///
/// 项目id
///
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string projectid { get; set; }
///
/// 类型id
///
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string typeid { get; set; }
///
/// 标题
///
public string title { get; set; }
///
/// 内容
///
public string content { get; set; }
///
/// 图片
///
public string headimg { get; set; }
///
/// 图片缩略图
///
public string headsmallimg { get; set; }
///
/// 附件
///
public List files { get; set; }
///
/// 级别(1最高)
///
public int level { get; set; }
///
/// 状态(0正常显示、1不显示) ----------------- 定时部分 state
///
public int state { get; set; } = 0;
///
/// 发布类型(0立即发布、1定时发布)
///
public int publishtype { get; set; } = 0;
///
/// 定时时间
///
public DateTime? timingtime { get; set; }
///
/// 有效期时间(空值不限制)
///
public DateTime? endtime { get; set; }
///
/// 权限角色(空值是所有可看) ------------------------------------ 定时部分 end
///
public string rolecode { get; set; }
///
/// 排序
///
public int sort { get; set; }
///
/// 提交时间
///
public DateTime createtime { get; set; } = DateTime.Now;
///
/// 提交人工号
///
public string createuser { get; set; }
///
/// 提交人姓名
///
public string createusername { get; set; }
///
/// 是否删除
///
public int isdelete { get; set; } = 0;
///
/// 删除用户
///
public string deleteuser { get; set; }
///
/// 删除时间
///
public DateTime? deletetime { get; set; }
}
}