using JNPF.DependencyInjection; using JNPF.DynamicApiController; using JNPF.Logging.Attributes; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace JNPF.Systems.Common; /// /// 测试接口. /// [ApiDescriptionSettings(Name = "Test", Order = 900)] [Route("api")] public class HeartbeatService : IDynamicApiController, ITransient { [HttpGet("heartbeat")] [AllowAnonymous] [IgnoreLog] public string Heartbeat() { return DateTime.Now.ToString(); } }