forked from mtusi2026/mtusi2026lab2
32 lines
400 B
Go
32 lines
400 B
Go
package dto
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Chat struct {
|
|
ID uuid.UUID
|
|
Title string
|
|
MemberIDs []uuid.UUID
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
type CreateChat struct {
|
|
CreatorID uuid.UUID
|
|
Title string
|
|
MemberIDs []uuid.UUID
|
|
}
|
|
|
|
type ChatMember struct {
|
|
UserID uuid.UUID
|
|
ChatID uuid.UUID
|
|
}
|
|
|
|
type ChatFilters struct {
|
|
UserID uuid.UUID
|
|
Limit *int
|
|
AfterID *uuid.UUID
|
|
}
|