feat: 新增渠道身份菜单、会话成员/标签展示、修复群聊成员 person_type 及重复同步问题
This commit is contained in:
@@ -2,6 +2,10 @@ import client from './client'
|
||||
export * from './channelSubject'
|
||||
export * from './channelAccount'
|
||||
|
||||
export interface ChannelIdentityQuery {
|
||||
keyword?: string
|
||||
}
|
||||
|
||||
export function createConversation(data: any) {
|
||||
return client.post('/api/v1/conversation', data)
|
||||
}
|
||||
@@ -25,3 +29,15 @@ export function bindConversationAccount(conversationId: number, data: any) {
|
||||
export function bindConversationTags(conversationId: number, data: any) {
|
||||
return client.post(`/api/v1/conversation/${conversationId}/bind-tags`, data)
|
||||
}
|
||||
|
||||
export function listChannelIdentities(params?: ChannelIdentityQuery) {
|
||||
return client.get('/api/v1/channel-identity/list', { params })
|
||||
}
|
||||
|
||||
export function listConversationParticipants(conversationId: number) {
|
||||
return client.get(`/api/v1/conversation/${conversationId}/participants`)
|
||||
}
|
||||
|
||||
export function listConversationTags(conversationId: number) {
|
||||
return client.get(`/api/v1/conversation/${conversationId}/tags`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user