index.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import request from '@/config/axios'
  2. // 猎寻服务 VO
  3. export interface HuntVO {
  4. id: number // id
  5. name: string // 姓名
  6. enterpriseName: string // 企业名称
  7. phone: string // 联系方式
  8. status: string // 状态(0待处理|1已联系)
  9. remark: string // 备注
  10. }
  11. // 猎寻服务 API
  12. export const HuntApi = {
  13. // 查询猎寻服务分页
  14. getHuntPage: async (params: any) => {
  15. return await request.get({ url: `/menduner/system/hunt/page`, params })
  16. },
  17. // 查询猎寻服务详情
  18. getHunt: async (id: number) => {
  19. return await request.get({ url: `/menduner/system/hunt/get?id=` + id })
  20. },
  21. // 新增猎寻服务
  22. createHunt: async (data: HuntVO) => {
  23. return await request.post({ url: `/menduner/system/hunt/create`, data })
  24. },
  25. // 修改猎寻服务
  26. updateHunt: async (data: HuntVO) => {
  27. return await request.put({ url: `/menduner/system/hunt/update`, data })
  28. },
  29. // 删除猎寻服务
  30. deleteHunt: async (id: number) => {
  31. return await request.delete({ url: `/menduner/system/hunt/delete?id=` + id })
  32. },
  33. // 导出猎寻服务 Excel
  34. exportHunt: async (params) => {
  35. return await request.download({ url: `/menduner/system/hunt/export-excel`, params })
  36. }
  37. }