添加政府,银行大屏,修改政府前后端代码

This commit is contained in:
2025-09-30 17:48:03 +08:00
parent e9be0f9d98
commit deb005b88e
1409 changed files with 69541 additions and 520 deletions

View File

@@ -0,0 +1,31 @@
const express = require('express')
const router = express.Router()
const {
getEpidemicRecords,
getEpidemicRecordById,
createEpidemicRecord,
updateEpidemicRecord,
deleteEpidemicRecord,
batchDeleteEpidemicRecords
} = require('../controllers/EpidemicRecordController')
const auth = require('../middleware/auth')
// 获取防疫记录列表
router.get('/list', auth, getEpidemicRecords)
// 获取防疫记录详情
router.get('/detail/:id', auth, getEpidemicRecordById)
// 创建防疫记录
router.post('/create', auth, createEpidemicRecord)
// 更新防疫记录
router.put('/update/:id', auth, updateEpidemicRecord)
// 删除防疫记录
router.delete('/delete/:id', auth, deleteEpidemicRecord)
// 批量删除防疫记录
router.delete('/batch-delete', auth, batchDeleteEpidemicRecords)
module.exports = router

View File

@@ -0,0 +1,39 @@
const express = require('express')
const router = express.Router()
const {
getVaccines,
getVaccineById,
createVaccine,
updateVaccine,
deleteVaccine,
batchDeleteVaccines,
stockIn,
stockOut
} = require('../controllers/VaccineController')
const auth = require('../middleware/auth')
// 获取疫苗列表
router.get('/list', auth, getVaccines)
// 获取疫苗详情
router.get('/detail/:id', auth, getVaccineById)
// 创建疫苗
router.post('/create', auth, createVaccine)
// 更新疫苗
router.put('/update/:id', auth, updateVaccine)
// 删除疫苗
router.delete('/delete/:id', auth, deleteVaccine)
// 批量删除疫苗
router.delete('/batch-delete', auth, batchDeleteVaccines)
// 疫苗入库
router.post('/stock-in/:id', auth, stockIn)
// 疫苗出库
router.post('/stock-out/:id', auth, stockOut)
module.exports = router