# tao-service-code **Repository Path**: tao0929/tao-service-code ## Basic Information - **Project Name**: tao-service-code - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-06-18 - **Last Updated**: 2026-06-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 选择困难症救星后端 Spring Boot 3 + Java 21 后端服务,提供用户注册登录、类目管理、子项管理和随机选择接口。 ## 本地运行 ```bash mvn spring-boot:run ``` 默认端口:`8080` 数据库:H2 文件数据库,数据文件位于项目运行目录的 `data/` 下。 ## 核心接口 ```text POST /api/auth/register POST /api/auth/login GET /api/auth/me GET /api/categories POST /api/categories PUT /api/categories/{id} DELETE /api/categories/{id} POST /api/categories/{categoryId}/items PUT /api/items/{id} DELETE /api/items/{id} POST /api/categories/{categoryId}/random ``` 除注册和登录外,其余接口需要请求头: ```text Authorization: Bearer ```