using System.Collections.Generic;
using Siger.Middlelayer.Repository.Data.Tpm;

namespace Siger.ApiTPM.Result
{
    public class SearchStatisticalResult : TpmResultBase
    {
        public int ret { get; set; } = 1;

        public string msg { get; set; } = string.Empty;

        public SearchStatistical data { get; set; }

        public List<StatisticalModel> datas { get; set; }

        public SearchStatisticalResult()
        {
            data = new SearchStatistical();
            datas = new List<StatisticalModel>();
        }
    }

    public class SearchStatistical
    {
        public List<string> x { get; set; } = new List<string> { };

        public List<int> y1 { get; set; } = new List<int> { };

        public List<int> y2 { get; set; } = new List<int> { };

        public List<string> y3 { get; set; } = new List<string> { };
    }

    public class StatisticalModel
    {
        public string tim { get; set; } = string.Empty;

        public int les { get; set; } = 0;

        public int total { get; set; } = 0;

        public string per { get; set; } = string.Empty;
    }
}
