A8000
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. import apiClient from '../../utils/axios'
  2. //获取id卡信息列表
  3. interface idCardParams {
  4. pageNum: number
  5. pageSize: number
  6. }
  7. export const getIdCardList = async (params: idCardParams) => {
  8. try {
  9. const { pageNum, pageSize } = params
  10. const res = await apiClient.post(
  11. `/api/v1/app/a8kProjectCard/get?pageNum=${pageNum}&pageSize=${pageSize}`,
  12. )
  13. console.log('获取id卡信息列表', res)
  14. return res.data
  15. } catch (error) {
  16. console.log('获取id卡信息出错', error)
  17. }
  18. }
  19. //保存id接口
  20. export const saveMountedCardInfo = async () => {
  21. try {
  22. const res = await apiClient.post(
  23. '/api/v1/app/a8kProjectCard/saveMountedCardInfo',
  24. )
  25. return res
  26. } catch (error) {
  27. console.log('保存id出错', error)
  28. }
  29. }
  30. // //id卡事件
  31. // export const IdCardEvent = async () => {
  32. // try {
  33. // const res = await apiClient.post('/api/v1/idcard/event')
  34. // return res.data
  35. // } catch (error) {
  36. // console.log('id卡事件出错', error)
  37. // }
  38. // }
  39. //读取已经挂载的id卡信息
  40. export const getMountedCardInfo = async () => {
  41. try {
  42. const res = await apiClient.post(
  43. '/api/v1/app/a8kProjectCard/readMountedCardInfo',
  44. )
  45. return res.data
  46. } catch (error) {
  47. console.log('读取已经挂载的id卡信息出错', error)
  48. }
  49. }