代码分层 #1

Merged
dindang merged 2 commits from dev into main 2026-07-16 02:34:09 +00:00

2 Commits

Author SHA1 Message Date
dindang
01a579ab9c Fix unhandled errors and dead code warnings
- Handle validateContent errors in worker.go
- Handle os.Remove errors in worker.go
- Remove dead CheckContent function from floor_handler.go
- Add comment markers for intentionally ignored errors
- Remove unused result variable

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-16 10:32:30 +08:00
dindang
cb7e595c27 Fix lint warnings and code cleanup
- Remove duplicate calc structs, use model.CalcXxx
- Replace log.Printf with logger in recommend handler
- Remove dead code (unused var, dummy imports)
- Clean up response helpers
- Add api/ package with route registration

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-16 10:29:11 +08:00