mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-16 05:10:34 +00:00
fix: 提高Api兼容性
This commit is contained in:
parent
9e670e2736
commit
3280952931
@ -9,10 +9,10 @@ const SchemaData = {
|
|||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
flag: { type: 'string' },
|
flag: { type: 'string' },
|
||||||
approve: { type: 'boolean' },
|
approve: { type: ['string', 'boolean'] },
|
||||||
reason: { type: 'string' }
|
reason: { type: 'string' }
|
||||||
},
|
},
|
||||||
required: ['flag']
|
required: ['flag'],
|
||||||
} as const satisfies JSONSchema;
|
} as const satisfies JSONSchema;
|
||||||
|
|
||||||
type Payload = FromSchema<typeof SchemaData>;
|
type Payload = FromSchema<typeof SchemaData>;
|
||||||
|
|||||||
@ -8,10 +8,10 @@ const SchemaData = {
|
|||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
flag: { type: 'string' },
|
flag: { type: 'string' },
|
||||||
approve: { type: 'boolean' },
|
approve: { type: ['string', 'boolean'] },
|
||||||
remark: { type: 'string' }
|
remark: { type: 'string' }
|
||||||
},
|
},
|
||||||
required: ['flag','approve']
|
required: ['flag', 'approve']
|
||||||
} as const satisfies JSONSchema;
|
} as const satisfies JSONSchema;
|
||||||
|
|
||||||
type Payload = FromSchema<typeof SchemaData>;
|
type Payload = FromSchema<typeof SchemaData>;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user