更新完善页面

This commit is contained in:
董海洋
2026-06-03 14:15:55 +08:00
parent 4b7ae9c933
commit 1675662537
57 changed files with 7625 additions and 883 deletions
+13
View File
@@ -0,0 +1,13 @@
const Router = require('koa-router')
const refundController = require('../controllers/refunds')
const { requireAuth, requireStaffAuth } = require('../middleware/auth')
const router = new Router()
router.get('/', requireStaffAuth(), refundController.getRefunds)
router.get('/user/list', requireAuth(), refundController.getUserRefunds)
router.get('/:id', requireAuth(), refundController.getRefundById)
router.post('/', requireAuth(), refundController.createRefund)
router.put('/:id/process', requireStaffAuth(), refundController.processRefund)
module.exports = router.routes()