Merge branch 'feature-nxdev' of https://gitea.nxsir.cn/code/IM into feature-nxdev

This commit is contained in:
2025-11-27 16:56:02 +08:00
25 changed files with 479 additions and 83 deletions
+4
View File
@@ -0,0 +1,4 @@
namespace IM_API.Dtos
{
public record RefreshDto(string refreshToken);
}
+9
View File
@@ -64,6 +64,15 @@ namespace IM_API.Dtos
Code = code;
Message = message;
}
/// <summary>
/// 接受codedefine对象
/// </summary>
/// <param name="codeDefine"></param>
public BaseResponse(CodeDefine codeDefine)
{
this.Code = codeDefine.Code;
this.Message = codeDefine.Message;
}
public BaseResponse() { }
}
}
+6
View File
@@ -0,0 +1,6 @@
using IM_API.Models;
namespace IM_API.Dtos
{
public record FriendInfoDto(int Id, int UserId,int FriendId,FriendStatus StatusEnum,DateTime Created,string RemarkName,string? Avatar);
}
+2
View File
@@ -3,5 +3,7 @@
public class UpdateUserDto
{
public string? NickName { get; set; }
public string? Avatar { get; set; }
}
}
+7
View File
@@ -0,0 +1,7 @@
using IM_API.Models;
namespace IM_API.Dtos
{
public record PasswordResetDto(string oldPassword,string Password);
public record OnlineStatusSetDto(UserOnlineStatus OnlineStatus);
}
+4 -3
View File
@@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations;
using IM_API.Models;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IM_API.Dtos
@@ -22,7 +23,7 @@ namespace IM_API.Dtos
/// 0(默认):不在线
/// 1:在线
/// </summary>
public sbyte OlineStatus { get; set; }
public UserOnlineStatus OnlineStatusEnum { get; set; }
/// <summary>
/// 创建时间
@@ -33,6 +34,6 @@ namespace IM_API.Dtos
/// 账户状态
/// (0:未激活,1:正常,2:封禁)
/// </summary>
public sbyte Status { get; set; }
public UserStatus StatusEnum { get; set; }
}
}