using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YBDevice.Entity;

namespace YBDevice.Application.OrderInfo
{

    /// <summary>
    /// 订单提交
    /// </summary>
    public class OrderSubmitDto: YB_Order
    {
        /// <summary>
        /// 绑定的设备ID列表
        /// </summary>
        public List<int> equids { get; set; }
    }

    /// <summary>
    /// 订单列表
    /// </summary>
   public class OrderList:YB_Order
    {
        /// <summary>
        /// 商户名称
        /// </summary>
        public string BusinessName { get; set; }
        /// <summary>
        /// 公众号/小程序/链接名称
        /// </summary>
        public string AppName { get; set; }
    }

    public class OrderDto
    {
        /// <summary>
        /// 商户名称
        /// </summary>
        public string BusinessName { get; set; }
        /// <summary>
        /// 公众号/小程序/链接名称
        /// </summary>
        public string AppName { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 主键
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 类型,1-公众号,2-链接,3-小程序
        /// </summary>
        public System.Int32 Type { get; set; }

        /// <summary>
        /// 链接或者公众号appid
        /// </summary>
        public System.String Url { get; set; }

        /// <summary>
        /// 实时关注/点击数
        /// </summary>
        public System.Int32 RealCount { get; set; }

        /// <summary>
        /// 累计展现次数
        /// </summary>
        public System.Int32 ShowCount { get; set; }

        /// <summary>
        /// 总数,为0则无上限
        /// </summary>
        public System.Int32 TotalCount { get; set; }

        /// <summary>
        /// 今日展现数量
        /// </summary>
        public System.Int32 DayCount { get; set; }

        /// <summary>
        /// 今日实际关注/点击数
        /// </summary>
        public System.Int32 DayRealCount { get; set; }

        /// <summary>
        /// 日上限,为0则没有上限
        /// </summary>
        public System.Int32 DayLimit { get; set; }
        /// <summary>
        /// 起止时间
        /// </summary>
        public string time { get; set; }

        /// <summary>
        /// 订单状态,1-正常,2-暂停,3-已完成,4-已取消
        /// </summary>
        public System.Int32 Status { get; set; }

        /// <summary>
        /// 状态备注
        /// </summary>
        public System.String StatusRemark { get; set; }

        /// <summary>
        /// 优先级,数字越大越先被取到
        /// </summary>
        public System.Int32 Priority { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public System.DateTime CreateTime { get; set; }
    }
    /// <summary>
    /// 订单设备
    /// </summary>
    public class OrderEquDto
    {
        /// <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;
    }
}
