up add sms

This commit is contained in:
Mrx
2026-02-25 16:38:58 +08:00
parent ed5ebc5648
commit 60a0770917
14 changed files with 321 additions and 23 deletions

View File

@@ -23,6 +23,7 @@ import (
app "ycc-server/app/main/api/internal/handler/app"
auth "ycc-server/app/main/api/internal/handler/auth"
authorization "ycc-server/app/main/api/internal/handler/authorization"
captcha "ycc-server/app/main/api/internal/handler/captcha"
notification "ycc-server/app/main/api/internal/handler/notification"
pay "ycc-server/app/main/api/internal/handler/pay"
product "ycc-server/app/main/api/internal/handler/product"
@@ -901,6 +902,18 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
rest.WithPrefix("/api/v1"),
)
server.AddRoutes(
[]rest.Route{
{
// get encrypted scene id for aliyun captcha
Method: http.MethodPost,
Path: "/captcha/encryptedSceneId",
Handler: captcha.GetEncryptedSceneIdHandler(serverCtx),
},
},
rest.WithPrefix("/api/v1"),
)
server.AddRoutes(
[]rest.Route{
{