mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
direct message
This commit is contained in:
@@ -41,24 +41,24 @@ export const MessageEntitySchema = z.object({
|
||||
|
||||
type Message = z.infer<typeof MessageEntitySchema>;
|
||||
|
||||
export class MessageEntity implements Message {
|
||||
export class MessageEntity {
|
||||
|
||||
$id: number
|
||||
id: string
|
||||
$id?: number
|
||||
id?: string
|
||||
roomId?: string
|
||||
receiverId?: number
|
||||
message: string
|
||||
message?: string
|
||||
messageType: number = 0
|
||||
canEdit: boolean = false
|
||||
oneShot: boolean = false
|
||||
sentAt: string
|
||||
sentAt?: string
|
||||
requireUnlock: boolean = false
|
||||
info: {
|
||||
memberId?: number
|
||||
readAt?: string,
|
||||
deliverAt?: string
|
||||
}[] = []
|
||||
sender: {
|
||||
sender!: {
|
||||
wxUserId: number,
|
||||
wxFullName: string,
|
||||
wxeMail: string,
|
||||
@@ -82,7 +82,7 @@ export class MessageEntity implements Message {
|
||||
|
||||
reactions = []
|
||||
|
||||
requestId: string
|
||||
requestId!: string
|
||||
|
||||
constructor() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user