jiangping
2024-12-27 5506edbe54883b31db3cc8e4a1d9d0795a18a3c9
company/src/api/business/customerService.js
对比新文件
@@ -0,0 +1,38 @@
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}`)
}