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