聊天:组队私人邀请接口
This commit is contained in:
@@ -321,6 +321,17 @@ export async function pushTeamInviteMsg(roleId: string, roleName: string, server
|
||||
return { msgDataWorld, msgDataGuild };
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 发送组队私人邀请消息
|
||||
* @param {string} teamCode 队伍唯一标识
|
||||
*/
|
||||
export async function pushFriendTeamInviteMsg(roleId: string, roleName: string, teamCode: string, targetRoleId) {
|
||||
const msgData = await createPrivateMsg(roleId, roleName, MSG_TYPE.RICH_TEXT, MSG_SOURCE.TEAM_INVITE, teamCode, targetRoleId, null);
|
||||
await pushMsgToRole(msgData);
|
||||
return msgData;
|
||||
}
|
||||
|
||||
|
||||
export async function createAccuseData(roleId: string, targetRoleId: string, targetMsgCode: string, reason: number) {
|
||||
const data: AccueseParam = {
|
||||
roleId, targetRoleId, targetMsgCode, reason
|
||||
|
||||
Reference in New Issue
Block a user