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

namespace YBDevice.Entity
{
    /// <summary>
    /// 设备列表
    /// </summary>
    public class DeviceListModel:YB_Device
    {
        /// <summary>
        /// 客户名称
        /// </summary>
        public string BusinessName { get; set; }
        /// <summary>
        /// 类型名称
        /// </summary>
        public string TypeName { get; set; }
        /// <summary>
        /// 今日称重次数
        /// </summary>
        public int todayresultcnt { get; set; }
        /// <summary>
        /// 累计称重次数
        /// </summary>
        public int totalresultcnt { get; set; }
        /// <summary>
        /// 最近测量时间
        /// </summary>
        public string time { get; set; }
    }
    /// <summary>
    /// 设备和设备类型列表数据
    /// </summary>
    public class DeviceAndTypeModel
    {
        /// <summary>
        /// 设备信息
        /// </summary>
        public YB_Device equ { get; set; }
        /// <summary>
        /// 设备类型列表
        /// </summary>
        public List<YB_DeviceType> types { get; set; }
    }
    /// <summary>
    /// 设备批量操作
    /// </summary>
    public class DeviceBatchModel
    {
        /// <summary>
        /// 服务商ID
        /// </summary>
        public int BusinessId { get; set; }
        /// <summary>
        /// 操作类型,1-分配,2-回收
        /// </summary>
        public int type { get; set; }
        /// <summary>
        /// 设备ID列表
        /// </summary>
        public List<int> codes { get; set; }
        /// <summary>
        /// 分配是否激活,管理员使用,1-是,0-否
        /// </summary>
        public int isactive { get; set; } = 1;
    }
    /// <summary>
    /// 关键字回复响应信息
    /// </summary>
    public class WXTextResponseData
    {
        /// <summary>
        /// 用户fansid
        /// </summary>
        public string wxfansid { get; set; }
        /// <summary>
        /// 类型,1-带测量参数二维码,2-固定二维码
        /// </summary>
        public int type { get; set;}
        /// <summary>
        /// 记录ID
        /// </summary>
        public string resultid { get; set; } = null;
    }
    /// <summary>
    /// 用户扫码的设备列表
    /// </summary>
    public class ScanListC2SDto
    {
        /// <summary>
        /// 列表数据,多个之间以,分隔
        /// </summary>
        [Required(ErrorMessage ="设备列表不可为空")]
        public string Data { get; set; }

        /// <summary>
        /// 文件名称
        /// </summary>
        [Required(ErrorMessage ="请先输入一个文件名称"),MaxLength(100,ErrorMessage ="名称最多100个字")]
        public string Name { get; set; }
    }
}
