wip: baseline changes before channel-conversation-task boundary implementation
This commit is contained in:
@@ -1,24 +1,6 @@
|
||||
import client from './client'
|
||||
|
||||
export function createChannelSubject(data: any) {
|
||||
return client.post('/api/v1/channel-subject', data)
|
||||
}
|
||||
|
||||
export function listChannelSubjects() {
|
||||
return client.get('/api/v1/channel-subject/list')
|
||||
}
|
||||
|
||||
export function createChannelAccount(data: any) {
|
||||
return client.post('/api/v1/channel-account', data)
|
||||
}
|
||||
|
||||
export function listChannelAccounts() {
|
||||
return client.get('/api/v1/channel-account/list')
|
||||
}
|
||||
|
||||
export function initChannelAccount(data: any) {
|
||||
return client.post('/api/v1/channel-account/init', data)
|
||||
}
|
||||
export * from './channelSubject'
|
||||
export * from './channelAccount'
|
||||
|
||||
export function createConversation(data: any) {
|
||||
return client.post('/api/v1/conversation', data)
|
||||
@@ -28,6 +10,14 @@ export function listConversations() {
|
||||
return client.get('/api/v1/conversation/list')
|
||||
}
|
||||
|
||||
export function updateConversation(id: number, data: any) {
|
||||
return client.put(`/api/v1/conversation/${id}`, data)
|
||||
}
|
||||
|
||||
export function deleteConversation(id: number) {
|
||||
return client.delete(`/api/v1/conversation/${id}`)
|
||||
}
|
||||
|
||||
export function bindConversationAccount(conversationId: number, data: any) {
|
||||
return client.post(`/api/v1/conversation/${conversationId}/bind-account`, data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user