feat: add user management workflows

This commit is contained in:
Codex
2026-03-19 10:06:43 +08:00
parent 64e61454ab
commit 897cee385d
14 changed files with 547 additions and 39 deletions

View File

@@ -5,6 +5,7 @@ Innovation Platform is a Spring Boot based demo for university innovation and en
## What is included
- Authentication endpoints powered by Sa-Token
- User management APIs for admin and profile workflows
- Project CRUD APIs with pagination
- Project dashboard statistics endpoint
- Static admin dashboard prototype at `backend/src/main/resources/static/index.html`
@@ -21,6 +22,14 @@ Innovation Platform is a Spring Boot based demo for university innovation and en
- `POST /api/auth/login`
- `POST /api/auth/register`
- `POST /api/auth/logout`
- `GET /api/users`
- `GET /api/users/{id}`
- `POST /api/users`
- `PUT /api/users/{id}`
- `DELETE /api/users/{id}`
- `GET /api/users/teachers`
- `POST /api/users/change-password`
- `PUT /api/users/profile`
- `GET /api/projects`
- `GET /api/projects/stats`
- `GET /api/projects/{id}`
@@ -43,3 +52,4 @@ When the backend is running, open `/index.html` to use the lightweight dashboard
- This repository snapshot was recovered from an archive, so local build and runtime validation depend on the target machine having Java and Maven available.
- The current environment used for editing did not include a working Maven installation, so changes were verified statically only.
- The SQL bootstrap files were refreshed into a clean UTF-8 seed set and made idempotent with `ON DUPLICATE KEY UPDATE`.
- Upstream user-management changes were reconciled into this branch with DTO-based responses so password hashes are not exposed from `/api/users`.