feat(web): add pinia/vue-flow deps and update API layer

This commit is contained in:
2026-07-07 15:22:05 +08:00
parent 891ded382e
commit bcef04a8cc
10 changed files with 445 additions and 32 deletions

View File

@@ -4,14 +4,30 @@ 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 function createConversation(data: any) {
return client.post('/api/v1/conversation', data)
}
export function listConversations() {
return client.get('/api/v1/conversation/list')
}
export function bindConversationAccount(conversationId: number, data: any) {
return client.post(`/api/v1/conversation/${conversationId}/bind-account`, data)
}