You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
445 B
C#

2 years ago
using DS.Module.Core;
using DS.Module.User;
2 years ago
using Microsoft.AspNetCore.Authorization;
2 years ago
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.WebApi.Controllers;
/// <summary>
/// WebApi控制器基类
/// </summary>
2 years ago
[Authorize]
2 years ago
[ApiController]
[Route("api/[controller]")]
public abstract class ApiController : Controller
{
/// <summary>
/// 获取用户信息
/// </summary>
public UserInfo UserDetails => Request.GetUserInfo();
}