- Added `UserLocation` model to `prisma/schema.prisma` to store user location data including coordinates (point geometry), name, avatar, and bindings to Logto and Kaiqiu users. - Created new API endpoints under `/api/account/location` to handle location operations: - `POST`: Create a new location record for a user. - `GET`: Retrieve nearby locations based on latitude and longitude. - `PUT`: Update an existing location record, including coordinate updates via spatial index. - `DELETE`: Remove a specific location record. - Integrated the custom spatial operations from `xprisma` DAO to support geospatial queries and updates. - Updated dependencies to include `@mui/icons-material` (and its peer dependencies like `prop-types` and `react-transition-group` which are implicitly required by the new icon components). - Implemented `verifyLogtoToken` logic to secure the new endpoints and associate locations with authenticated users. No breaking changes in API contracts; new endpoints are additive. |
||
|---|---|---|
| .. | ||
| data | ||
| fav-dao.test.ts | ||
| kaiqiu-login.test.ts | ||
| kaiqiu.test.ts | ||
| location.test.ts | ||
| redis.test.ts | ||
| utils.load-html.test.ts | ||
| utils.test.ts | ||
| xcxapi.test.ts | ||