add login type for auth,add list baseResponse

This commit is contained in:
2020-01-06 12:48:43 +08:00
parent 3edb472bfb
commit e8d5496ef5
4 changed files with 41 additions and 9 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ namespace YYApi.Controllers
/// <summary>
/// 当前登录用户的ID
/// </summary>
protected int LoginId => HttpContext.Items["LoginId"] == null ? 0 : int.Parse(HttpContext.Items["LoginId"].ToString());
protected LoginInfoItem LoginInfo => (LoginInfoItem)HttpContext.Items["LoginInfo"];
/// <summary>
/// 验证请求参数