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