40 lines
677 B
JavaScript
40 lines
677 B
JavaScript
import request from '../utils/request'
|
|
|
|
// card 卡片模块
|
|
|
|
// 获取卡片列表
|
|
export function getCardList(data) {
|
|
return request({
|
|
url: '/identityCard/list',
|
|
method: 'POST',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 删除卡片
|
|
export function deleteCardRequest(data) {
|
|
return request({
|
|
url: '/identityCard/delete',
|
|
method: 'POST',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 检查卡片名称是否重复
|
|
export function checkCardNameRequest(data) {
|
|
return request({
|
|
url: '/identityCard/checkIdentityCardName',
|
|
method: 'POST',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 添加卡片
|
|
export function addCardRequest(data) {
|
|
return request({
|
|
url: '/identityCard/add',
|
|
method: 'POST',
|
|
data
|
|
})
|
|
}
|