using System;
using System.Collections.Generic;

namespace CallCenterApi.Model
{
    /// <summary>
    /// 文章主实体类
    /// </summary>
    [Serializable]
    public partial class article
    {
        public article()
        { }
        #region Model
        private int _id;
        private string _title = string.Empty;
        private int _category_id = 0;
        private int _status = 0;
        //private string _title;
        private string _img_url = string.Empty;
        private string _zhaiyao = string.Empty;
        private string _content;
        private int _sort_id = 99;
        private DateTime _add_time = DateTime.Now;
        private DateTime? _update_time;
        private decimal? _sell_price;
        private string _goods_no;
        private int _department = 0;


        /// <summary>
        /// 自增ID
        /// </summary>
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 类别ID
        /// </summary>
        public int category_id
        {
            set { _category_id = value; }
            get { return _category_id; }
        }
        /// <summary>
        /// 标题
        /// </summary>
        public string title
        {
            set { _title = value; }
            get { return _title; }
        }
        /// <summary>
        /// 图片地址
        /// </summary>
        public string img_url
        {
            set { _img_url = value; }
            get { return _img_url; }
        }
        /// <summary>
        /// 内容摘要
        /// </summary>
        public string zhaiyao
        {
            set { _zhaiyao = value; }
            get { return _zhaiyao; }
        }
        /// <summary>
        /// 详细内容
        /// </summary>
        public string content
        {
            set { _content = value; }
            get { return _content; }
        }
        /// <summary>
        /// 排序
        /// </summary>
        public int sort_id
        {
            set { _sort_id = value; }
            get { return _sort_id; }
        }
        /// <summary>
        /// -1=删除; 0=下架; 1=上架;
        /// </summary>
        public int status
        {
            set { _status = value; }
            get { return _status; }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime add_time
        {
            set { _add_time = value; }
            get { return _add_time; }
        }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? update_time
        {
            set { _update_time = value; }
            get { return _update_time; }
        }
        /// <summary>
        /// 售价
        /// </summary>
        public decimal? sell_price
        {
            set { _sell_price = value; }
            get { return _sell_price; }
        }
        /// <summary>
        /// 商品编号
        /// </summary>
        public string goods_no
        {
            set { _goods_no = value; }
            get { return _goods_no; }
        }
        public int department
        {
            set { _department = value; }
            get { return _department; }
        }
        public string categorytitle { get; set; }

        #endregion
    }

    public enum EnumProductStatus
    {
        删除 = -1,
        已下架 = 0,
        在售 = 1
    }
}