|
|
@ -39,6 +39,7 @@ class InboxService extends TcService {
|
|
|
|
groupId: payload.groupId,
|
|
|
|
groupId: payload.groupId,
|
|
|
|
converseId: payload.converseId,
|
|
|
|
converseId: payload.converseId,
|
|
|
|
messageId: payload.messageId,
|
|
|
|
messageId: payload.messageId,
|
|
|
|
|
|
|
|
messageAuthor: payload.author,
|
|
|
|
messageSnippet: payload.content,
|
|
|
|
messageSnippet: payload.content,
|
|
|
|
messagePlainContent: payload.plain,
|
|
|
|
messagePlainContent: payload.plain,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -95,7 +96,7 @@ class InboxService extends TcService {
|
|
|
|
ctx: TcContext<{
|
|
|
|
ctx: TcContext<{
|
|
|
|
userId?: string;
|
|
|
|
userId?: string;
|
|
|
|
type: string;
|
|
|
|
type: string;
|
|
|
|
payload: any;
|
|
|
|
payload: Record<string, any>;
|
|
|
|
}>
|
|
|
|
}>
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
const { userId = ctx.meta.userId, type, payload } = ctx.params;
|
|
|
|
const { userId = ctx.meta.userId, type, payload } = ctx.params;
|
|
|
|