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