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

38 lines
815 B
TypeScript
Raw Normal View History

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