chore: 落地标准化

This commit is contained in:
手瓜一十雪 committed 2024-07-29 08:43:37 +08:00
1 parent a034b9529d
commit dfdeabce51
2 files changed
+26 -3

No files matched your search

@@ -11,10 +11,11 @@ const SchemaData = {
type Payload = FromSchema<typeof SchemaData>;
export class FetchCustomFace extends BaseAction<Payload, any> {
export class FetchCustomFace extends BaseAction<Payload, string[]> {
actionName = ActionName.FetchCustomFace;
PayloadSchema = SchemaData;
protected async _handle(payload: Payload) {
return await NTQQMsgApi.fetchFavEmojiList(payload.count || 48);
let ret = await NTQQMsgApi.fetchFavEmojiList(payload.count || 48);
return ret.emojiInfoList.map(e => e.url);
}
}