/** * 积分历史记录模型 * */ import { z } from "zod"; import { arrayOrEmpty, numberOrZero } from "../nullable-defaults"; export const CreditsHistoryDataSchema = z.object({ records: arrayOrEmpty(z.record(z.string(), z.unknown())), total: numberOrZero, limit: numberOrZero, offset: numberOrZero, }); export type CreditsHistoryDataInput = z.input; export type CreditsHistoryDataData = z.output;