think/packages/domains/lib/api/message.js

38 lines
815 B
TypeScript
Raw Permalink Normal View History

2022-05-23 05:05:59 +00:00
"use strict";
exports.__esModule = true;
exports.MessageApiDefinition = void 0;
exports.MessageApiDefinition = {
/**
*
*/
getUnread: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: 'unread',
client: function () { return '/message/unread'; }
},
/**
*
*/
getRead: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: 'read',
client: function () { return '/message/read'; }
},
/**
*
*/
getAll: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: 'all',
client: function () { return '/message/all'; }
},
/**
*
*/
readMessage: {
2022-05-23 08:20:56 +00:00
method: 'post',
2022-05-23 05:05:59 +00:00
server: 'read/:id',
client: function (id) { return "/message/read/".concat(id); }
}
};