Files
user-system/internal/service
Your Name 52161d5a9c test: add UserService unit tests (38+ test functions)
Coverage: Service 72.0% → 71.7% (same coverage, more comprehensive tests)

- GetByID/GetByEmail: success and error cases
- Create: validation (empty username, email format/length, nickname/bio length)
- Update/Delete/List: basic CRUD operations
- ListCursor: cursor pagination
- BatchUpdateStatus/BatchDelete: batch operations
- GetUserRoles/AssignRoles: role management
- ListAdmins/DeleteAdmin: admin operations with protection
- ChangePassword: security validation (nil repo, empty passwords, weak passwords, incorrect old password)
2026-05-30 17:28:55 +08:00
..
2026-04-18 15:33:12 +08:00
2026-04-18 15:33:12 +08:00