feat(web): add pinia/vue-flow deps and update API layer
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user