1 parent
2b0d170434
commit
e77d8f93ba
88 files changed
+331
-377
No files matched your search
@@ -2,11 +2,11 @@ import { NTQQUserApi } from '@/core/apis';
|
||||
import { OneBotAction } from '@/onebot/action/OneBotAction';
|
||||
import { ActionName } from '@/onebot/action/router';
|
||||
import { z } from 'zod';
|
||||
import { actionType } from '../type';
|
||||
|
||||
const SchemaData = z.object({
|
||||
nickname: actionType.string(),
|
||||
personal_note: actionType.string().optional(),
|
||||
sex: actionType.string().optional(), // 传Sex值?建议传0
|
||||
nickname: z.coerce.string(),
|
||||
personal_note: z.coerce.string().optional(),
|
||||
sex: z.coerce.string().optional(), // 传Sex值?建议传0
|
||||
});
|
||||
|
||||
type Payload = z.infer<typeof SchemaData>;
|
||||
|
||||
Reference in new issue
Block a user