chore: 落地标准化

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

View File

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