fix: resolve todo

This commit is contained in:
dylanmay
2025-11-27 09:55:24 +08:00
parent eb27bd5c6d
commit 5374e64bcb
33 changed files with 718 additions and 1001 deletions

View File

@@ -16,12 +16,6 @@ export namespace MpAccountApi {
remark?: string;
createTime?: Date;
}
// TODO @dylan这个直接使用 Account简化一点
export interface AccountSimple {
id: number;
name: string;
}
}
/** 查询公众号账号列表 */
@@ -41,7 +35,7 @@ export function getAccount(id: number) {
/** 查询公众号账号列表 */
export function getSimpleAccountList() {
return requestClient.get<MpAccountApi.AccountSimple[]>(
return requestClient.get<MpAccountApi.Account[]>(
'/mp/account/list-all-simple',
);
}

View File

@@ -9,13 +9,29 @@ export namespace MpMessageApi {
export interface Message {
id?: number;
accountId: number;
type: MessageType;
type: MessageType | string;
openid: string;
content: string;
mediaId?: string;
status: number;
remark?: string;
createTime?: Date;
sendFrom?: number;
userId?: number;
event?: string;
eventKey?: string;
mediaUrl?: string;
recognition?: string;
url?: string;
title?: string;
label?: string;
locationX?: number;
locationY?: number;
thumbMediaUrl?: string;
musicUrl?: string;
hqMusicUrl?: string;
description?: string;
articles?: any[];
}
/** 发送消息请求 */