using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Siger.Middlelayer.DashboardRepository.Request
{
    public class RequestAddPage
    {
        [Required(ErrorMessage = "CobboxIdIsEmpty")]
        public string comb_id { get; set; }

        public string pageTitle { get; set; }

        public string page_code { get; set; }

        public string[] dashboard_comb_page_condition { get; set; }
        //DashboardConfig控制器接口AddPage接收参数需要
        public string  page_id { get; set; }
        //灯的状态
        public int lampStatus { get; set; } = 0;
        //设备布局图
        public string layout { get; set; }
        //设备定位配置
        public List<RequestFix> fixPath { get; set; }

    }
    public class RequestFix
    {
        public int projectid { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// x
        /// </summary>
        public int x { get; set; }
        /// <summary>
        /// y
        /// </summary>
        public int y { get; set; }

        public int section_id { get; set; }
    }


}
