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.

31 lines
782 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
{
/// <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,
Mobile = App.User.Mobile
};
return Success<dynamic>(user);
}
}
}