更新API说明文档

This commit is contained in:
Kyaru
2026-06-25 21:52:41 +08:00
parent 67c9330659
commit b4cc90d2d3
3 changed files with 28 additions and 3 deletions

View File

@@ -54,6 +54,7 @@ app.put('/api/customers/:id', auth, checkPermission('customer', 'update'),
app.delete('/api/customers/:id', auth, checkPermission('customer', 'delete'), customers.remove)
// ============ 员工管理 /api/employees ============
app.get('/api/employees/simple', auth, employees.simpleList)
app.get('/api/employees', auth, checkPermission('employee', 'read'), employees.list)
app.get('/api/employees/:id', auth, checkPermission('employee', 'read'), employees.detail)
app.post('/api/employees', auth, checkPermission('employee', 'create'), employees.create)