UNPKG

mt-flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

16 lines (15 loc) 572 B
import * as z from "zod"; import { EntityItemBaseSchema } from "./_common"; export const spRouteSchema = EntityItemBaseSchema.extend({ spSiteId: z.number(), path: z.string({ // required_error: "domain必须填写", // invalid_type_error: "domain格式不正确", }), rPath: z.string({ // required_error: "domain必须填写", // invalid_type_error: "domain格式不正确", }).default("root"), }); export const spRouteCreateSchema = spRouteSchema.extend({}); export const spRouteUpdateSchema = spRouteSchema.extend({ id: z.number() });