...
This commit is contained in:
31
Common/Dtos/Conversation/ChatItemDto.cs
Normal file
31
Common/Dtos/Conversation/ChatItemDto.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Common.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Common.Dtos.Conversation
|
||||
{
|
||||
public class ChatItemDto
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string LastText { get; set; }
|
||||
public ConversationType LastMsgType { get; set; }
|
||||
public ConversationStatus status { get; set; }
|
||||
|
||||
public int? GroupID { get; set; }
|
||||
public string? GroupName { get; set; }
|
||||
|
||||
public int UserID { get; set; }
|
||||
public string? UserFullName { get; set; }
|
||||
|
||||
public int? ExperID { get; set; }
|
||||
public string? ExperFullName { get; set; }
|
||||
|
||||
public string LastMsgdate { get; set; }
|
||||
public string LastMsgtime { get; set; }
|
||||
|
||||
public List<ChatItemResponseDto> Responses { get; set; }
|
||||
}
|
||||
}
|
23
Common/Dtos/Conversation/ChatItemResponseDto.cs
Normal file
23
Common/Dtos/Conversation/ChatItemResponseDto.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Common.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Common.Dtos.Conversation
|
||||
{
|
||||
public class ChatItemResponseDto
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int ChatItemID { get; set; }
|
||||
public int? ExperID { get; set; }
|
||||
public bool IsRead { get; set; } = false;
|
||||
public string ExperName { get; set; }
|
||||
public ConversationType Type { get; set; }
|
||||
public string text { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public string FileType { get; set; }
|
||||
public byte[] FileContent { get; set; }
|
||||
}
|
||||
}
|
16
Common/Dtos/CurrentUserInfo.cs
Normal file
16
Common/Dtos/CurrentUserInfo.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Common.Dtos
|
||||
{
|
||||
public class CurrentUserInfo
|
||||
{
|
||||
public int CompanyID { get; set; }= 0;
|
||||
public int? ExperID { get; set; }
|
||||
public string Username { get; set; } = "";
|
||||
public string Role { get; set; }= "";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user