using MadRunFabric.Common;
using System;
using System.Collections.Generic;
using System.Text;

namespace MessageApi.Model.Dto
{
    public class SysNewsDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 省code
        /// </summary>
        public string province { get; set; }
        public string provincename { get; set; }

        /// <summary>
        /// 市code
        /// </summary>
        public string city { get; set; }
        public string cityname { get; set; }

        /// <summary>
        /// 项目id
        /// </summary>
        public string projectid { get; set; }
        public string projectname { get; set; }

        /// <summary>
        /// 类型id
        /// </summary>
        public string typeid { get; set; }
        public string typename { get; set; }
        
        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string content { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        public string headimg { get; set; }

        /// <summary>
        /// 图片缩略图
        /// </summary>
        public string headsmallimg { get; set; }

        /// <summary>
        /// 附件
        /// </summary>
        public List<FileBaseModel> files { get; set; }
        /// <summary>
        /// 级别(1最高)
        /// </summary>
        public int level { get; set; }

        /// <summary>
        /// 状态(0正常显示、1不显示) ----------------- 定时部分 state
        /// </summary>
        public int state { get; set; }
        /// <summary>
        /// 发布类型(0立即发布、1定时发布)
        /// </summary>
        public int publishtype { get; set; }
        /// <summary>
        /// 定时时间
        /// </summary>
        public DateTime? timingtime { get; set; }
        /// <summary>
        /// 有效期时间(空值不限制)
        /// </summary>
        public DateTime? endtime { get; set; }
        /// <summary>
        /// 权限角色(空值是所有可看) ------------------------------------ 定时部分 end
        /// </summary>
        public string rolecode { get; set; } = "";

        /// <summary>
        /// 排序
        /// </summary>
        public int sort { get; set; }
        /// <summary>
        /// 提交时间
        /// </summary>
        public DateTime createtime { get; set; } = DateTime.Now;
        /// <summary>
        /// 提交人工号
        /// </summary>
        public string createuser { get; set; }
        /// <summary>
        /// 提交人姓名
        /// </summary>
        public string createusername { get; set; }
    }
}
