using APT.BaseData.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Text;

namespace APT.BaseData.Domain.ApiModel.BD
{
    /// <summary>
    /// 公司主页数据
    /// </summary>
    public class CompanyIndexModel
    {
        /// <summary>
        /// 能耗总量
        /// </summary>
        public string EnergyNum { get; set; }

        /// <summary>
        /// 浏览数
        /// </summary>
        public int PVNum { get; set; }

        /// <summary>
        /// 并发数
        /// </summary>
        public int ConcurrencyNum { get; set; }

        /// <summary>
        /// 报警次数
        /// </summary>
        public int WarningNum { get; set; }

        /// <summary>
        /// CPU使用率
        /// </summary>
        public decimal CPU { get; set; }

        /// <summary>
        /// 内存占用率
        /// </summary>
        public decimal STORAGE { get; set; }

        /// <summary>
        /// 更新日志
        /// </summary>
        public List<VersionManager> VersionManager { get; set; }

        /// <summary>
        /// 运用流程
        /// </summary>
        public List<UseProcess> UseProcess { get; set; }
    }

    /// <summary>
    /// 更新日志
    /// </summary>
    public class VersionManager
    {
        /// <summary>
        /// 版本号
        /// </summary>
        public string Version { get; set; }

        /// <summary>
        /// 版本号
        /// </summary>
        public string Version_ZH { get; set; }

        /// <summary>
        /// 更新内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
    }

    /// <summary>
    /// 运用流程
    /// </summary>
    public class UseProcess
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string PName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public List<UseChildren> UseChildren { get; set; }
    }

    public class UseChildren
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string PName { get; set; }

        /// <summary>
        /// 请求表单名称
        /// </summary>
        public string ApiFormName { get; set; }

        /// <summary>
        /// 表单
        /// </summary>
        public object FromObj { get; set; }

        /// <summary>
        /// 是否必须
        /// </summary>
        public bool IsReq { get; set; }

        /// <summary>
        /// 背景色
        /// </summary>
        public string BgColor { get; set; }
    }

}
