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
51 lines
1.3 KiB
import apiClient from '../../utils/axios'
|
|
//获取id卡信息列表
|
|
interface idCardParams {
|
|
pageNum: number
|
|
pageSize: number
|
|
}
|
|
export const getIdCardList = async (params: idCardParams) => {
|
|
try {
|
|
const { pageNum, pageSize } = params
|
|
const res = await apiClient.post(
|
|
`/api/v1/app/a8kProjectCard/get?pageNum=${pageNum}&pageSize=${pageSize}`,
|
|
)
|
|
console.log('获取id卡信息列表', res)
|
|
return res.data
|
|
} catch (error) {
|
|
console.log('获取id卡信息出错', error)
|
|
}
|
|
}
|
|
|
|
//保存id接口
|
|
export const saveMountedCardInfo = async () => {
|
|
try {
|
|
const res = await apiClient.post(
|
|
'/api/v1/app/a8kProjectCard/saveMountedCardInfo',
|
|
)
|
|
return res
|
|
} catch (error) {
|
|
console.log('保存id出错', error)
|
|
}
|
|
}
|
|
// //id卡事件
|
|
// export const IdCardEvent = async () => {
|
|
// try {
|
|
// const res = await apiClient.post('/api/v1/idcard/event')
|
|
// return res.data
|
|
// } catch (error) {
|
|
// console.log('id卡事件出错', error)
|
|
// }
|
|
// }
|
|
|
|
//读取已经挂载的id卡信息
|
|
export const getMountedCardInfo = async () => {
|
|
try {
|
|
const res = await apiClient.post(
|
|
'/api/v1/app/a8kProjectCard/readMountedCardInfo',
|
|
)
|
|
return res.data
|
|
} catch (error) {
|
|
console.log('读取已经挂载的id卡信息出错', error)
|
|
}
|
|
}
|