refactor: checkDate

This commit is contained in:
手瓜一十雪
2024-05-30 22:41:51 +08:00
parent 19c84b4344
commit fbf3d4decd
21 changed files with 28 additions and 28 deletions

View File

@@ -7,9 +7,9 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
const SchemaData = {
type: 'object',
properties: {
group_id: { type: 'number' },
user_id: { type: 'number' },
duration: { type: 'number' }
group_id: { type: ['number', 'string'] },
user_id: { type: ['number', 'string'] },
duration: { type: ['number', 'string'] }
},
required: ['group_id', 'user_id', 'duration']
} as const satisfies JSONSchema;