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

36 lines
685 B
TypeScript
Raw Permalink Normal View History

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;
};
};