using Furion.DataValidation;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YBDevice.Application.AdInfo
{
    /// <summary>
    /// 咨询类型
    /// </summary>
    public class SecInfoTypeCS2Dto
    {
        /// <summary>
        /// 
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 分组名称
        /// </summary>
        [Required(ErrorMessage = "名称不可为空"), MaxLength(50, ErrorMessage = "名称最多为50个字")]
        public string Name { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(100, ErrorMessage = "备注最多为100个字")]
        [DataValidation(AllowEmptyStrings = true, AllowNullValue = true)]
        public string Remark { get; set; }

        /// <summary>
        /// 排序,数字越小越靠前
        /// </summary>
        public int SortCode { get; set; }
    }
    /// <summary>
    /// 轮播图设备
    /// </summary>
    public class BannerEquDto
    {
        /// <summary>
        /// 设备ID
        /// </summary>
        public int equid { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public string facecode { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 是否选中
        /// </summary>
        public bool ischecked { get; set; }
        /// <summary>
        /// 是否全选
        /// </summary>
        public bool isall { get; set; } = false;
    }
}
