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
8 months ago
7 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. return res.data
  14. } catch (error) {
  15. console.log('获取id卡信息出错', error)
  16. }
  17. }
  18. //保存id接口
  19. export const saveMountedCardInfo = async () => {
  20. try {
  21. const res = await apiClient.post(
  22. '/api/v1/app/a8kProjectCard/saveMountedCardInfo',
  23. )
  24. return res.data
  25. } catch (error) {
  26. console.log('保存id出错', error)
  27. }
  28. }
  29. //读取已经挂载的id卡信息
  30. export const getMountedCardInfo = async () => {
  31. try {
  32. const res = await apiClient.post(
  33. '/api/v1/app/a8kProjectCard/readMountedCardInfo',
  34. )
  35. return res.data
  36. } catch (error) {
  37. console.log('读取已经挂载的id卡信息出错', error)
  38. }
  39. }
  40. //读取已经挂载的id卡信息
  41. export const delCard = async (id) => {
  42. try {
  43. const res = await apiClient.post(
  44. `/api/v1/app/a8kProjectCard/delete?id=${id}`,
  45. )
  46. return res.data
  47. } catch (error) {
  48. console.log('删除卡信息出错', error)
  49. }
  50. }