18 Commits

Author SHA1 Message Date
Frudrax Cheng 5edb25ac4e feat: restrict permission roles 2026-06-06 13:50:56 +08:00
Frudrax Cheng 698c22cd08 refactor: remove company management APIs 2026-06-05 18:00:14 +08:00
Frudrax Cheng efdde0ab28 feat: add product trace APIs 2026-06-05 17:21:06 +08:00
Frudrax Cheng 93506639e3 feat: add project work orders 2026-06-04 10:25:57 +08:00
Frudrax Cheng 35cd939b92 Add OSS site image uploads for aftersales 2026-06-02 11:04:25 +08:00
Frudrax Cheng d3ee215f61 Refactor employee management 2026-05-28 10:05:59 +08:00
Frudrax Cheng f394d3a8bd feat: add employee role and block backend login 2026-05-28 09:30:31 +08:00
Frudrax Cheng 3ddd4db126 Add user management for admin (CRUD + role + reset password)
Adds /api/users endpoints (admin only) plus /api/users/assignable
(admin + technician) used by the aftersales reassign picker. Guards
prevent self-demotion, self-deletion, and removing the last admin.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-26 10:57:53 +08:00
Frudrax Cheng 0d82260fd9 Add aftersales work order feature
- AftersalesOrder model with state machine (created/pending_confirmation/closed/rejected)
- Public scan-to-confirm flow with phone last-4 verification and rate limiting
- Technician role and middleware for ownership-scoped operations
- QR code generation pointing to /aftersales/{serialNumber}
- Admin overrides: reassign, force-close, delete

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-26 10:39:49 +08:00
cynosura e820b858bf Change department to position 2026-03-02 14:01:52 +08:00
cynosura 4f18028a7b Re-migrate code 2026-03-02 12:57:07 +08:00
cynosura 6070df659a Re-migrate code 2026-03-02 10:41:43 +08:00
cynosura 1cc3097d9b Re-migrate code 2026-03-02 10:31:45 +08:00
cynosura f80f2b43ce Re-migrate code 2026-03-02 10:24:11 +08:00
cynosura 51025195a5 Re-migrate code 2026-03-02 10:05:12 +08:00
cynosura c29cbdf847 Add employee code assignment function 2026-03-02 09:38:03 +08:00
cynosura d51e2dc500 feat: integrate swagger documentation and gin cors middleware 2026-02-12 19:13:58 +08:00
cynosura e01cdc9889 Initial commit 2026-02-12 14:31:30 +08:00