feat(manual-entry): 支持筛选及全量导出 CSV

This commit is contained in:
yml
2026-11-29 13:53:30 +08:00
parent 2692488ff2
commit 2e0018b943
10 changed files with 588 additions and 71 deletions
+1
View File
@@ -847,6 +847,7 @@ func New(cfg config.Config, deps Dependencies, logger *zap.Logger) *gin.Engine {
adminRoutes.POST("/manual-entries/options", requirePerm("cs_manual_entry:option_manage"), manualEntryHandler.CreateOption)
adminRoutes.PUT("/manual-entries/options/:id", requirePerm("cs_manual_entry:option_manage"), manualEntryHandler.UpdateOption)
adminRoutes.DELETE("/manual-entries/options/:id", requirePerm("cs_manual_entry:option_manage"), manualEntryHandler.DeleteOption)
adminRoutes.GET("/manual-entries/export", requirePerm("cs_manual_entry:view"), manualEntryHandler.Export)
adminRoutes.GET("/manual-entries", requirePerm("cs_manual_entry:view"), manualEntryHandler.List)
adminRoutes.POST("/manual-entries", requirePerm("cs_manual_entry:create"), manualEntryHandler.Create)
adminRoutes.PUT("/manual-entries/:id", requirePerm("cs_manual_entry:update"), manualEntryHandler.Update)