think/packages/domains/lib/api/message.d.ts

36 lines
685 B
TypeScript

import { IMessage } from '../models';
export declare const MessageApiDefinition: {
/**
* 获取未读消息
*/
getUnread: {
method: "get";
server: "unread";
client: () => string;
};
/**
* 获取已读消息
*/
getRead: {
method: "get";
server: "read";
client: () => string;
};
/**
* 获取所有消息
*/
getAll: {
method: "get";
server: "all";
client: () => string;
};
/**
* 将消息标记为已读
*/
readMessage: {
method: "post";
server: "read/:id";
client: (id: IMessage['id']) => string;
};
};