modify(login): 修改登录返回对象,新增返回用户信息
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
{
|
||||
public class LoginDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public UserInfoDto userInfo { get; set; }
|
||||
public string Token { get; set; }
|
||||
public string RefreshToken { get; set; }
|
||||
public DateTime ExpireAt { get; set; }
|
||||
public LoginDto(int id,string token,string refreshToken,DateTime expireAt) {
|
||||
this.Id = id;
|
||||
public LoginDto(UserInfoDto userInfo,string token, string refreshToken, DateTime expireAt) {
|
||||
this.userInfo = userInfo;
|
||||
this.Token = token;
|
||||
this.RefreshToken = refreshToken;
|
||||
this.ExpireAt = expireAt;
|
||||
|
||||
Reference in New Issue
Block a user