forked from gzt/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.
52 lines
1.3 KiB
52 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}`,
|
|
)
|
|
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.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)
|
|
}
|
|
}
|
|
//读取已经挂载的id卡信息
|
|
export const delCard = async (id) => {
|
|
try {
|
|
const res = await apiClient.post(
|
|
`/api/v1/app/a8kProjectCard/delete?id=${id}`,
|
|
)
|
|
return res.data
|
|
} catch (error) {
|
|
console.log('删除卡信息出错', error)
|
|
}
|
|
}
|