Commit Graph

15 Commits

Author SHA1 Message Date
cde4fb8594 feat: switch to global auth and tenant route prefix 2026-01-26 18:04:05 +08:00
ea342bf8a3 fix: align portal queries and super auth 2026-01-25 15:11:08 +08:00
bf0b57f537 fix: align tenant_id content filter 2026-01-09 10:25:26 +08:00
cd96033a3d fix: use int64 for auth and recharge ids 2026-01-09 10:06:41 +08:00
3e095c57f3 feat: tenant-scoped routing and portal navigation 2026-01-08 21:30:46 +08:00
d98f41f1ac feat: align ids to int64 2026-01-08 09:57:04 +08:00
5b45f7d5c4 feat: 添加租户列表接口,优化租户相关功能;更新前端租户列表和收藏功能 2026-01-07 16:10:03 +08:00
1298192157 feat: 添加点赞和收藏功能,优化内容详情视图和评论交互 2026-01-07 14:43:52 +08:00
984770c6a1 feat(editor): update 2025-12-31 14:50:18 +08:00
54de243fa1 feat: Refactor user context handling and service methods
- Updated middleware to fetch user and tenant models by ID and set them in context.
- Refactored common service methods to accept userID as a parameter instead of extracting from context.
- Modified content service methods to include userID as a parameter for better clarity and performance.
- Adjusted coupon, creator, notification, order, tenant, user, and wallet services to utilize userID directly.
- Enhanced context key constants for improved readability and maintainability.
2025-12-30 22:49:26 +08:00
e5064db577 refactor: 移除不必要的上下文调用,简化服务方法参数 2025-12-30 22:14:22 +08:00
fba77afec1 feat: 重构内容列表接口,使用过滤器结构体简化参数传递;更新相关服务和测试用例 2025-12-29 15:04:55 +08:00
b78f1e1c84 feat(user): implement OTP login, user creation, and profile management
- Added SendOTP method for simulating OTP sending.
- Implemented LoginWithOTP method for user login/registration via OTP, including user creation if not found.
- Added Me method to retrieve current user information.
- Implemented Update method for updating user profile details.
- Added RealName method for real-name verification.
- Implemented GetNotifications method to fetch user notifications.
- Created user_test.go for comprehensive unit tests covering login, profile retrieval, updates, real-name verification, and notifications.
- Updated database models to use appropriate consts for fields like gender, status, and roles.
2025-12-29 10:55:13 +08:00
d482905157 feat: 更新内容相关接口,使用统一的分页响应结构 2025-12-29 10:14:47 +08:00
ad52371028 feat: implement new structure 2025-12-29 09:30:49 +08:00