using DataVAPI.Model;
using DataVAPI.ModelDataBus;
using DataVAPI.ServerDB.MongoDB;
using DataVAPI.Tool.IOT;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
namespace DataVAPI.Controllers
{
///
/// MG数据库:统计接口
///
public class DeviceStatsController : BaseController
{
MongoDbHelper mgLA = new MongoDbHelper(DataBus.connStr, DataBus.dbName);
MongoDbHelper mggj = new MongoDbHelper(DataBus.connStr, DataBus.dbName);
MongoDbHelper mglog = new MongoDbHelper(DataBus.connStr, DataBus.dbName);
MongoDbHelper mgsb = new MongoDbHelper(DataBus.connStr, DataBus.dbName);
string st = System.Reflection.MethodBase.GetCurrentMethod().Name;
///
/// 根据客户端ID查询最近上下线与告警时间
///
///
///
[HttpGet]
public JsonMsg