fix: resolve todo
This commit is contained in:
@@ -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',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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[];
|
||||
}
|
||||
|
||||
/** 发送消息请求 */
|
||||
|
||||
Reference in New Issue
Block a user