18 lines
480 B
TypeScript
18 lines
480 B
TypeScript
/**
|
|
* 积分历史记录模型
|
|
*
|
|
*/
|
|
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<typeof CreditsHistoryDataSchema>;
|
|
export type CreditsHistoryDataData = z.output<typeof CreditsHistoryDataSchema>;
|