节点在线、应用在线、配置在线使用令牌查询
大石头 authored at 2021-12-16 19:49:30
746.00 B
Stardust
using System;
using System.Collections.Generic;
using NewLife.Cube;
using NewLife.Web;
using Stardust.Data.Configs;

namespace Stardust.Web.Areas.Configs.Controllers
{
    [ConfigsArea]
    public class ConfigOnlineController : ReadOnlyEntityController<ConfigOnline>
    {
        static ConfigOnlineController()
        {
            ListFields.RemoveField("Token");
        }

        protected override IEnumerable<ConfigOnline> Search(Pager p)
        {
            var appId = p["appId"].ToInt(-1);
            var clientId = p["clientId"];

            var start = p["dtStart"].ToDateTime();
            var end = p["dtEnd"].ToDateTime();

            return ConfigOnline.Search(appId, clientId, start, end, p["Q"], p);
        }
    }
}