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.
43 lines
809 B
43 lines
809 B
import request from '@/utils/request'
|
|
|
|
export function checkStatus(params) {
|
|
return request({
|
|
url: 'api/RFID/CheckStatus',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
export function readEpc(params) {
|
|
return request({
|
|
url: 'api/RFID/ReadEpc',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
export function writeEPC(params) {
|
|
return request({
|
|
url: 'api/RFID/WriteEPC',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
export function getDeviceMac() {
|
|
return request({
|
|
// url: 'api/RFID/getDeviceMac',
|
|
url: 'api/RFID/getDeviceMacLinux',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
export function getDeviceIdByMac(mac) {
|
|
const params = { mac: mac }
|
|
return request({
|
|
url: 'api/RFID/getDeviceIdByMac',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
export default { checkStatus, readEpc, writeEPC, getDeviceMac, getDeviceIdByMac }
|