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.

30 lines
740 B
C#

using EntrustSettle.Common;
using EntrustSettle.Controllers;
using EntrustSettle.Model;
using Microsoft.AspNetCore.Mvc;
namespace EntrustSettle.Api.Controllers
{
/// <summary>
/// 用户信息
/// </summary>
public class UserController : BaseApiController
{
9 months ago
/// <summary>
/// 获取当前登录人的信息
/// </summary>
[HttpGet]
public MessageModel<dynamic> GetCurrentUser()
{
var user = new
{
Id = App.User.ID,
Name = App.User.Name,
CompanyId = App.User.CompanyId,
CompanyName = App.User.CompanyName
};
return Success<dynamic>(user);
}
}
}