mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
21 lines
482 B
TypeScript
21 lines
482 B
TypeScript
|
|
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>
|