refactor: checkDate

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

No files matched your search

@@ -16,7 +16,7 @@ interface Response {
const SchemaData = {
type: 'object',
properties: {
user_id: { type: 'number' },
user_id: { type: [ 'number' , 'string' ] },
message_seq: { type: 'number' },
count: { type: 'number' }
},
@@ -6,7 +6,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
const SchemaData = {
type: 'object',
properties: {
group_id: { type: 'number' },
group_id: { type: [ 'number' , 'string' ] },
type: { enum: [WebHonorType.ALL, WebHonorType.EMOTION, WebHonorType.LEGEND, WebHonorType.PERFROMER, WebHonorType.STORONGE_NEWBI, WebHonorType.TALKACTIVE] }
},
required: ['group_id']
@@ -15,7 +15,7 @@ interface Response {
const SchemaData = {
type: 'object',
properties: {
group_id: { type: 'number' },
group_id: { type: [ 'number' , 'string' ] },
message_seq: { type: 'number' },
count: { type: 'number' }
},
@@ -10,7 +10,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
const SchemaData = {
type: 'object',
properties: {
user_id: { type: 'number' },
user_id: { type: [ 'number' , 'string' ] },
},
required: ['user_id']
} as const satisfies JSONSchema;
@@ -7,7 +7,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
const SchemaData = {
type: 'object',
properties: {
group_id: { type: 'number' },
group_id: { type: [ 'number' , 'string' ] },
content: { type: 'string' },
image: { type: 'string' },
pinned: { type: 'number' },
@@ -10,7 +10,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
const SchemaData = {
type: 'object',
properties: {
group_id: { type: 'number' },
group_id: { type: [ 'number' , 'string' ] },
file: { type: 'string' },
name: { type: 'string' },
folder: { type: 'string' }