feat : 通讯录管理

This commit is contained in:
2024-09-15 22:58:46 +08:00
parent aef2548b3d
commit 1fcaddb5d5
5 changed files with 300 additions and 78 deletions

View File

@@ -0,0 +1,30 @@
import request from '@/utils/request.js'
export const addContact = (data) => {
return request({
url: '/contact/add',
method: 'post',
data
})
}
export const getContactDetail = (contactId) => {
return request({
url: `/contact/${contactId}`,
method: 'get'
})
}
export const editContact = (data) => {
return request({
url: '/contact/update',
method: 'post',
data
})
}
export const deleteContact = (contactIds) => {
return request({
url: `/contact/${contactIds}`,
method: 'delete'
})
}