fix: make album attach_info optional (#1690)
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -5,7 +5,7 @@ import { Static, Type } from '@sinclair/typebox';
|
|||||||
const PayloadSchema = Type.Object({
|
const PayloadSchema = Type.Object({
|
||||||
group_id: Type.String({ description: '群号' }),
|
group_id: Type.String({ description: '群号' }),
|
||||||
album_id: Type.String({ description: '相册ID' }),
|
album_id: Type.String({ description: '相册ID' }),
|
||||||
attach_info: Type.String({ default: '', description: '附加信息(用于分页)' }),
|
attach_info: Type.Optional(Type.String({ default: '', description: '附加信息(用于分页)' })),
|
||||||
});
|
});
|
||||||
|
|
||||||
type PayloadType = Static<typeof PayloadSchema>;
|
type PayloadType = Static<typeof PayloadSchema>;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { Static, Type } from '@sinclair/typebox';
|
|||||||
|
|
||||||
const PayloadSchema = Type.Object({
|
const PayloadSchema = Type.Object({
|
||||||
group_id: Type.String({ description: '群号' }),
|
group_id: Type.String({ description: '群号' }),
|
||||||
attach_info: Type.String({ default: '', description: '附加信息(用于分页,从上一次返回结果中获取)' }),
|
attach_info: Type.Optional(Type.String({ default: '', description: '附加信息(用于分页,从上一次返回结果中获取)' })),
|
||||||
});
|
});
|
||||||
|
|
||||||
type PayloadType = Static<typeof PayloadSchema>;
|
type PayloadType = Static<typeof PayloadSchema>;
|
||||||
|
|||||||
Reference in new issue
Block a user