add chat repository

This commit is contained in:
Peter Maquiran
2024-06-03 13:34:40 +01:00
parent caa11d6be7
commit f7d8059f45
6 changed files with 127 additions and 0 deletions
@@ -0,0 +1,21 @@
import { z } from "zod";
const CreatedBySchema = z.object({
wxUserId: z.number(),
wxFullName: z.string(),
wxeMail: z.string().email(),
userPhoto: z.string()
});
const RoomListOutPutDTOSchema = z.object({
id: z.string(),
roomName: z.string(),
createdBy: CreatedBySchema,
createdAt: z.string().datetime(),
expirationDate: z.string().datetime(),
roomType: z.number()
});
export type RoomListOutPutDTO = z.infer<typeof RoomListOutPutDTOSchema>