model and Dto
This commit is contained in:
11
Common/Dtos/Conversation/ADD_ConversationDto.cs
Normal file
11
Common/Dtos/Conversation/ADD_ConversationDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
namespace Common.Dtos.Conversation
|
||||
{
|
||||
public class ADD_ConversationDto
|
||||
{
|
||||
public string Question { get; set; }
|
||||
public int? GroupID { get; set; }
|
||||
public int CompanyID { get; set; }
|
||||
public int? ExperID { get; set; }
|
||||
}
|
||||
}
|
13
Common/Dtos/Conversation/ADD_ConversationItemDto.cs
Normal file
13
Common/Dtos/Conversation/ADD_ConversationItemDto.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
namespace Common.Dtos.Conversation
|
||||
{
|
||||
public class ADD_ConversationItemDto
|
||||
{
|
||||
public int ConversationID { get; set; }
|
||||
public string Text { get; set; }
|
||||
public string? FileName { get; set; }
|
||||
public string? FileType { get; set; }
|
||||
public byte[]? FileContent { get; set; }
|
||||
}
|
||||
|
||||
}
|
24
Common/Dtos/Conversation/Read_ConversationDto.cs
Normal file
24
Common/Dtos/Conversation/Read_ConversationDto.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Common.Enums;
|
||||
|
||||
namespace Common.Dtos.Conversation
|
||||
{
|
||||
public class Read_ConversationDto
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public string Title { 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 Cdate { get; set; }
|
||||
public string Ctime { get; set; }
|
||||
public int NoReadCount { get; set; } = 0;
|
||||
}
|
||||
}
|
19
Common/Dtos/Conversation/Read_ConversationItemDto.cs
Normal file
19
Common/Dtos/Conversation/Read_ConversationItemDto.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Common.Enums;
|
||||
|
||||
|
||||
namespace Common.Dtos.Conversation
|
||||
{
|
||||
public class Read_ConversationItemDto
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int ConversationID { 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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user