| | |
| | | import request from '@/utils/request' |
| | | // 查询所有通讯录 |
| | | export function getContactList() { |
| | | return request({ |
| | | url: '/zfContact/all' , |
| | | method: 'get', |
| | | |
| | | }) |
| | | } |
| | | |
| | | // 根据id查询通讯录详细信息 |
| | | export function getContactIdList() { |
| | | return request({ |
| | | url: '/zfContact/2' , |
| | | method: 'get', |
| | | |
| | | }) |
| | | } |
| | | |
| | | //新增通讯录 |
| | | export function addContact(data) |
| | | { |
| | | return request({ |
| | | url: '/zfContact', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | //修改通讯录 |
| | | export function updateContact(data) { |
| | | return request({ |
| | | url: '/zfContact', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 删除通讯录 |
| | | export function delContact(ids) { |
| | | return request({ |
| | | url: '/zfContact/' +ids, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | | |
| | | //上传文件 |
| | | export function uploadPic(data) { |
| | | return request({ |
| | | url: '/common/upload', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | //下载文件 |
| | | export function download(data) { |
| | | return request({ |
| | | url: '/common/downLoadFile', |
| | | method: 'get', |
| | | params: data, |
| | | responseType: 'blob' |
| | | }) |
| | | } |