wip: baseline changes before channel-conversation-task boundary implementation

This commit is contained in:
2026-07-08 16:23:09 +08:00
parent 89c9e6a066
commit 1298a558e8
139 changed files with 11781 additions and 666 deletions

View File

@@ -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)
}