2025-06-06 16:00:39 +08:00

33 lines
913 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
*接口编写处...
*如果接口需要做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}");
}
}
}