Html.GetUserByToken(string userToken)
返回对象:CurrentUser
CurrentUser对象属性表
public class CurrentUser { /// <summary> /// 用户id /// </summary> public int Uid { get; set; } /// <summary> /// 用户名 /// </summary> public string UserName { get; set; } /// <summary> /// 用户昵称 /// </summary> public string NickName { get; set; } /// <summary> /// 用户头像 /// </summary> public string Avatar { get; set; } /// <summary> /// 用户组di /// </summary> public int MemberGroupId { get; set; } /// <summary> /// 部分id /// </summary> public int DepartmentId { get; set; } /// <summary> /// 是否超级管理员 /// </summary> public bool IsSuperAdmin { get; set; } /// <summary> /// 是否是管理员 /// </summary> public bool IsAdministrator { get; set; } /// <summary> /// 角色id /// </summary> public string RoleIds { get; set; } /// <summary> /// 用户邮箱 /// </summary> public string Email { get; set; } /// <summary> /// 用户手机 /// </summary> public string Mobile { get; set; } }