Introduce new `ChatService` for managing chat messages, including marking messages as read and checking read status. Add `WebSocketPacket` class for handling WebSocket communication and integrate it with `WebSocketService` to process chat-related packets. Enhance `ChatRoom` and `ChatMember` models with additional fields and relationships. Update `AppDatabase` to include new chat-related entities and adjust permissions for chat creation.
12 lines
255 B
C#
12 lines
255 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
[ApiController]
|
|
[Route("/chat")]
|
|
public class ChatController : ControllerBase
|
|
{
|
|
public class MarkMessageReadRequest
|
|
{
|
|
public Guid MessageId { get; set; }
|
|
public long ChatRoomId { get; set; }
|
|
}
|
|
} |