From 11c1391f063d0b0a5c658a2a32cf4b26dab1897b Mon Sep 17 00:00:00 2001 From: liangzai <2440983361@qq.com> Date: Fri, 27 Feb 2026 15:54:04 +0800 Subject: [PATCH] f --- app/main/api/internal/handler/routes.go | 10 +++++----- app/main/api/internal/types/types.go | 9 +++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/app/main/api/internal/handler/routes.go b/app/main/api/internal/handler/routes.go index b715e26..ea20077 100644 --- a/app/main/api/internal/handler/routes.go +++ b/app/main/api/internal/handler/routes.go @@ -656,6 +656,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { Path: "/info", Handler: agent.GetAgentInfoHandler(serverCtx), }, + { + Method: http.MethodGet, + Path: "/invite/poster", + Handler: agent.GetInvitePosterHandler(serverCtx), + }, { Method: http.MethodPost, Path: "/invite_code/delete", @@ -676,11 +681,6 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { Path: "/invite_link", Handler: agent.GetInviteLinkHandler(serverCtx), }, - { - Method: http.MethodGet, - Path: "/invite/poster", - Handler: agent.GetInvitePosterHandler(serverCtx), - }, { Method: http.MethodGet, Path: "/level/privilege", diff --git a/app/main/api/internal/types/types.go b/app/main/api/internal/types/types.go index d3274cb..cb1fbf1 100644 --- a/app/main/api/internal/types/types.go +++ b/app/main/api/internal/types/types.go @@ -1389,6 +1389,15 @@ type GetInviteLinkResp struct { InviteLink string `json:"invite_link"` // 邀请链接 } +type GetInvitePosterReq struct { + InviteLink string `form:"invite_link"` // 邀请链接(短链) + Format string `form:"format,optional"` // 返回格式:base64(默认) +} + +type GetInvitePosterResp struct { + PosterBase64 string `json:"poster_base64"` // 海报图片 base64(不含 data:image/png;base64, 前缀) +} + type GetLevelPrivilegeResp struct { Levels []LevelPrivilegeItem `json:"levels"` UpgradeToGoldFee float64 `json:"upgrade_to_gold_fee"`