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

const baseUrl = '/api/auth'
export const authRoutes = (app) => {
app.post(`${baseUrl}/login`, (req, res) => {
// const { username, password } = req.body
const mockResponse = {
code: '0',
msg: '成功',
data: {
id: 1,
createTime: '2025-04-27 07:44:01',
updateTime: '2025-04-27 07:44:01',
username: 'admin',
nickname: 'Admin',
password: null,
role: 'ADMIN',
deleted: 'DISABLE',
fixedUser: 'ENABLE',
},
}
setTimeout(() => {
res.json(mockResponse)
}, 2000)
})
app.post(`${baseUrl}/logout`, (req, res) => {
// const { username, password } = req.body
const mockResponse = {
code: '0',
msg: '成功',
data: null,
}
res.json(mockResponse)
})
}