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

namespace Stardust.Web.Areas.Registry.Controllers
{
    [RegistryArea]
    [Menu(80)]
    public class ServiceInfoController : EntityController<Service>
    {
        static ServiceInfoController()
        {
            LogOnChange = true;

            ListFields.RemoveField("Secret");

            {
                var df = ListFields.GetField("Providers") as ListField;
                df.Url = "AppService?serviceId={Id}";
            }
            {
                var df = ListFields.GetField("Consumers") as ListField;
                df.Url = "AppConsume?serviceId={Id}";
            }
        }
    }
}