Commit Graph

5 Commits

Author SHA1 Message Date
366a21d621 feat: add CNB login functionality and user management
- Introduced `cnb-login` route to handle user login via CNB token.
- Created `CnbServices` class for managing CNB user interactions.
- Added `findByCnbId` method in the User model to retrieve users by CNB ID.
- Updated error handling to provide more structured error messages.
- Enhanced user creation logic to handle CNB users.
- Added tests for the new CNB login functionality.
2026-02-20 23:30:53 +08:00
266b7b33de Refactor config management to use Drizzle ORM
- Replaced Sequelize with Drizzle ORM in config-related routes and models.
- Updated database queries to use Drizzle's syntax for selecting, inserting, updating, and deleting configurations.
- Removed the ConfigModel class and replaced it with direct database interactions.
- Introduced nanoid for generating unique IDs for new configurations.
- Added new routes for managing marks, including CRUD operations and versioning.
- Implemented transaction handling for critical operations in the MarkModel.
- Enhanced error handling and validation in routes.
2026-02-05 16:31:11 +08:00
5f63c4cf4b fix: 修改config和推出登陆 2025-03-22 19:49:35 +08:00
5c3d48abab feat: change permission for mino -resources 2025-03-22 12:48:49 +08:00
8053a3db64 关于login重构 2025-03-21 20:41:01 +08:00