fix: align portal queries and super auth

This commit is contained in:
2026-01-25 15:11:08 +08:00
parent bb374f5c52
commit ea342bf8a3
14 changed files with 340 additions and 23 deletions

View File

@@ -496,13 +496,13 @@ func (r *Routes) Register(router fiber.Router) {
router.Post("/t/:tenantCode/v1/me/favorites"[len(r.Path()):], Func2(
r.user.AddFavorite,
Local[*models.User]("__ctx_user"),
QueryParam[int64]("contentId"),
QueryParam[int64]("content_id"),
))
r.log.Debugf("Registering route: Post /t/:tenantCode/v1/me/likes -> user.AddLike")
router.Post("/t/:tenantCode/v1/me/likes"[len(r.Path()):], Func2(
r.user.AddLike,
Local[*models.User]("__ctx_user"),
QueryParam[int64]("contentId"),
QueryParam[int64]("content_id"),
))
r.log.Debugf("Registering route: Post /t/:tenantCode/v1/me/notifications/:id<int>/read -> user.MarkNotificationRead")
router.Post("/t/:tenantCode/v1/me/notifications/:id<int>/read"[len(r.Path()):], Func2(