| 对比新文件 |
| | |
| | | import request from '../../utils/request' |
| | | |
| | | // 鏌ヨ |
| | | export function fetchList (data) { |
| | | return request.post('/companyUser/page', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | | |
| | | // 鍒涘缓 |
| | | export function create (data) { |
| | | return request.post('/company/create', data) |
| | | } |
| | | |
| | | // 淇敼 |
| | | export function updateById (data) { |
| | | return request.post('/company/updateById', data) |
| | | } |
| | | // 淇敼 |
| | | export function update (data) { |
| | | return request.post('/company/update', data) |
| | | } |
| | | |
| | | // 鍒犻櫎 |
| | | export function deleteById (id) { |
| | | return request.get(`/company/delete/${id}`) |
| | | } |
| | | |
| | | // 鎵归噺鍒犻櫎 |
| | | export function deleteByIdInBatch (ids) { |
| | | return request.get('/company/delete/batch', { |
| | | params: { |
| | | ids |
| | | } |
| | | }) |
| | | } |