model and Dto

This commit is contained in:
mmrbnjd
2025-06-28 15:31:07 +03:30
parent 1f6ca5ee5f
commit c0b47129d4
38 changed files with 905 additions and 0 deletions

View 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; }
}
}

View 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; }
}
}

View 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;
}
}

View 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; }
}
}