mirror of https://github.com/fantasticit/think.git
36 lines
685 B
TypeScript
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;
|
|
};
|
|
};
|