消毒机设备
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.
 
 
 
 
 

31 lines
646 B

const baseUrl = '/api/device-point'
export const pointRoutes = (app) => {
app.get(`${baseUrl}/list`, (req, res) => {
const mockResponse = {
code: '0',
data: [
{
id: 2,
name: '托盘夹取位置',
code: 'trayPick',
type: '直线距离',
position: null,
},
],
msg: '成功',
}
setTimeout(() => {
res.json(mockResponse)
}, 1000)
})
app.put(`${baseUrl}`, (req, res) => {
const mockResponse = {
code: '0',
data: null,
msg: '成功',
}
setTimeout(() => {
res.json(mockResponse)
}, 2000)
})
}