33 lines
913 B
C#
Raw Normal View History

2025-06-06 16:00:39 +08:00
/*
*...
*Action的权限验证Action上使用属性
*: [ApiActionPermission("test2019",Enums.ActionPermissionOptions.Search)]
*/
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;
namespace VOL.AppManager.Controllers
{
public partial class test2019Controller
{
private string datetime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
[Route("delay")]
[HttpPost,HttpGet]
public ActionResult Delay()
{
Thread.Sleep(1000);
return Content($"显示加载提示:{datetime}");
}
[Route("getMsg")]
[HttpPost, HttpGet]
public ActionResult GetMsg()
{
return Content($"不带加载提示加载数据:{datetime}");
}
}
}