聊天:测试机制,添加部分接口的壳子
This commit is contained in:
@@ -69,4 +69,43 @@ export class ChatHandler {
|
||||
}]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 群聊发送接口
|
||||
* @param {{ channel: string, type: number, content: string, targetRoleId: string, targetMsgCode: string }} msg
|
||||
* @param {BackendSession} session
|
||||
* @memberof ChatHandler
|
||||
*/
|
||||
async sendGroupMessage(msg: { channel: string, type: number, content: string, targetRoleId: string, targetMsgCode: string }, session: BackendSession) {
|
||||
const { channel, type, content, targetRoleId, targetMsgCode } = msg;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 私聊发送接口
|
||||
* @param {{ type: number, content: string, targetRoleId: string, targetMsgCode: string }} msg
|
||||
* @param {BackendSession} session
|
||||
* @memberof ChatHandler
|
||||
*/
|
||||
async sendPrivateMessage(msg: { type: number, content: string, targetRoleId: string, targetMsgCode: string }, session: BackendSession) {
|
||||
const { type, content, targetRoleId, targetMsgCode } = msg;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 获取初始聊天消息,数据和登录时返回的一致
|
||||
* @param {{}} msg
|
||||
* @memberof ChatHandler
|
||||
*/
|
||||
async getInitMessage(msg: {}) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 获取私聊历史消息
|
||||
* @param {{targetRoleId: string, fromSeqId: number, count: number}} msg 聊天对象;聊天消息的顺序 id,不传为从最新开始;count 为消息条数
|
||||
* @memberof ChatHandler
|
||||
*/
|
||||
async getPrivateMessage(msg: {targetRoleId: string, fromSeqId: number, count: number}) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user