create room

This commit is contained in:
Peter Maquiran
2024-06-04 16:21:11 +01:00
parent 4fb5bfc4d0
commit 541d12121e
23 changed files with 289 additions and 82 deletions
@@ -0,0 +1,20 @@
import { z } from "zod"
const MessageOutPutDTOSchema = z.object({
id: z.string(),
sender: z.object({
wxUserId: z.number(),
wxFullName: z.string(),
wxeMail: z.string().email(),
userPhoto: z.string()
}),
message: z.string().datetime(),
messageType: z.string().datetime(),
sentAt: z.number(),
deliverAt: z.any(),
canEdit: z.any(),
oneShot: z.any(),
requireUnlock: z.any()
});
export type MessageOutPutDTO = z.infer<typeof MessageOutPutDTOSchema>