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.
33 lines
1.1 KiB
33 lines
1.1 KiB
const baseUrl = '/api/ores'
|
|
export const oreRoutes = (app) => {
|
|
app.get(`${baseUrl}/list`, (req, res) => {
|
|
const mockResponse = {
|
|
code: '0',
|
|
data: {
|
|
list: [
|
|
{
|
|
id: 1,
|
|
oresName: '金矿石2',
|
|
createTime: '2025-04-27 15:54:32',
|
|
updateTime: '2025-04-27 15:54:32',
|
|
craftsList: [
|
|
{
|
|
id: 1,
|
|
createTime: '2025-04-27 15:55:13',
|
|
updateTime: '2025-04-27 15:55:13',
|
|
name: '工艺2',
|
|
steps: '[{"method":"upTray"},{"method":"downTray"},{"method":"addLiquid","params":{"tubeSolList":[{"tubeNum":15,"addLiquidList":[{"solId":15,"volume":20}]}]}},{"method":"moveToSol"},{"method":"moveToHeat"},{"method":"shaking","params":{"second":6}},{"method":"startHeating","params":{"temperature":200}},{"method":"stopHeating"},{"method":"takePhoto"},{"method":"delay","params":{"second":2}}]',
|
|
oresId: 1,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
total: 1,
|
|
},
|
|
msg: '成功',
|
|
}
|
|
setTimeout(() => {
|
|
res.json(mockResponse)
|
|
}, 1000)
|
|
})
|
|
}
|