This commit is contained in:
2026-02-27 15:54:04 +08:00
parent 03a6207ad0
commit 11c1391f06
2 changed files with 14 additions and 5 deletions

View File

@@ -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",

View File

@@ -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"`