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
452 B
C#
20 lines
452 B
C#
using DS.Module.Core;
|
|
using DS.Module.User;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace DS.WMS.WebApi.Controllers;
|
|
|
|
/// <summary>
|
|
/// WebApi控制器基类
|
|
/// </summary>
|
|
[Authorize]
|
|
[ApiController]
|
|
[Route("client/api/[controller]")]
|
|
public abstract class ApiController : Controller
|
|
{
|
|
/// <summary>
|
|
/// 获取用户信息
|
|
/// </summary>
|
|
public UserInfo UserDetails => Request.GetUserInfo();
|
|
} |