| 对比新文件 |
| | |
| | | import request from '../../utils/request' |
| | | |
| | | // 鏌ヨ |
| | | export function fetchList (data) { |
| | | return request.post('/business/customerService/page', data, { |
| | | trim: true |
| | | }) |
| | | } |
| | | |
| | | // 鍒涘缓 |
| | | export function create (data) { |
| | | return request.post('/business/customerService/create', data) |
| | | } |
| | | |
| | | // 淇敼 |
| | | export function updateById (data) { |
| | | return request.post('/business/customerService/updateById', data) |
| | | } |
| | | |
| | | // 鍒犻櫎 |
| | | export function deleteById (id) { |
| | | return request.get(`/business/customerService/delete/${id}`) |
| | | } |
| | | |
| | | // 鏍规嵁ID鏌ヨ |
| | | export function findByCompanyId (companyId) { |
| | | return request.get(`/business/customerService/findByCompanyId?companyId=${companyId}`) |
| | | } |
| | | |
| | | // 鎺堟潈浼佷笟 |
| | | export function auth (data) { |
| | | return request.post('/business/customerService/auth', data) |
| | | } |
| | | |
| | | // 鏍规嵁ID鏌ヨ |
| | | export function getById (id) { |
| | | return request.get(`/business/customerService/${id}`) |
| | | } |