refactor: checkDate

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

View File

@ -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' }
},

View File

@ -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']

View File

@ -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' }
},

View File

@ -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;

View File

@ -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' },

View File

@ -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' }

View File

@ -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' ] },
pages: { type: 'number' },
},
required: ['group_id', 'pages']

View File

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

View File

@ -13,7 +13,7 @@ import { dbUtil } from '@/common/utils/db';
const SchemaData = {
type: 'object',
properties: {
group_id: { type: 'number' },
group_id: { type: [ 'number' , 'string' ] },
no_cache: { type: ['boolean', 'string'] },
},
required: ['group_id']

View File

@ -18,7 +18,7 @@ interface GroupNotice {
const SchemaData = {
type: 'object',
properties: {
group_id: { type: 'number' },
group_id: { type: [ 'number' , 'string' ] },
},
required: ['group_id']
} as const satisfies JSONSchema;

View File

@ -8,7 +8,7 @@ import { uid2UinMap } from '@/core/data';
const SchemaData = {
type: 'object',
properties: {
group_id: { type: 'number' }
group_id: { type: [ 'number' , 'string' ] }
},
} as const satisfies JSONSchema;

View File

@ -8,8 +8,8 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
const SchemaData = {
type: 'object',
properties: {
group_id: { type: 'number' },
user_id: { type: 'number' },
group_id: { type: [ 'number' , 'string' ] },
user_id: { type: [ 'number' , 'string' ] },
enable: { type: 'boolean' }
},
required: ['group_id', 'user_id', 'enable']

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;

View File

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

View File

@ -8,8 +8,8 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
const SchemaData = {
type: 'object',
properties: {
group_id: { type: 'number' },
user_id: { type: 'number' },
group_id: { type: [ 'number' , 'string' ] },
user_id: { type: [ 'number' , 'string' ] },
reject_add_request: { type: 'boolean' }
},
required: ['group_id', 'user_id', 'reject_add_request']

View File

@ -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' ] },
is_dismiss: { type: 'boolean' }
},
required: ['group_id']

View File

@ -6,7 +6,7 @@ import { NTQQGroupApi } from '@/core/apis/group';
const SchemaData = {
type: 'object',
properties: {
group_id: { type: 'number' },
group_id: { type: [ 'number' , 'string' ] },
group_name: { type: 'string' }
},
required: ['group_id', 'group_name']

View File

@ -6,7 +6,7 @@ import { NTQQGroupApi } from '@/core/apis/group';
const SchemaData = {
type: 'object',
properties: {
group_id: { type: 'number' },
group_id: { type: [ 'number' , 'string' ] },
enable: { type: 'boolean' }
},
required: ['group_id', 'enable']

View File

@ -10,8 +10,8 @@ const SchemaData = {
type: 'object',
properties: {
message_id: { type: 'number' },
group_id: { type: 'number' },
user_id: { type: 'number' }
group_id: { type: [ 'number' , 'string' ] },
user_id: { type: [ 'number' , 'string' ] }
},
required: ['message_id']
} as const satisfies JSONSchema;

View File

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

View File

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