缩短告警信息里面的时间显示
大石头 authored at 2022-02-23 22:24:23
714.00 B
Stardust
using System;
using System.Collections.Generic;
using NewLife.Cube;
using NewLife.Web;
using Stardust.Data;
using XCode.Membership;

namespace Stardust.Web.Areas.Registry.Controllers
{
    [RegistryArea]
    [Menu(0, false)]
    public class AppServiceController : EntityController<AppService>
    {
        protected override IEnumerable<AppService> Search(Pager p)
        {
            PageSetting.EnableAdd = false;
            PageSetting.EnableNavbar = false;

            var appId = p["appId"].ToInt(-1);
            var serviceId = p["serviceId"].ToInt(-1);
            var enable = p["enable"]?.ToBoolean();

            return AppService.Search(appId, serviceId, enable, p["Q"], p);
        }
    }
}