f
This commit is contained in:
@@ -656,6 +656,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|||||||
Path: "/info",
|
Path: "/info",
|
||||||
Handler: agent.GetAgentInfoHandler(serverCtx),
|
Handler: agent.GetAgentInfoHandler(serverCtx),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Method: http.MethodGet,
|
||||||
|
Path: "/invite/poster",
|
||||||
|
Handler: agent.GetInvitePosterHandler(serverCtx),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
Method: http.MethodPost,
|
Method: http.MethodPost,
|
||||||
Path: "/invite_code/delete",
|
Path: "/invite_code/delete",
|
||||||
@@ -676,11 +681,6 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|||||||
Path: "/invite_link",
|
Path: "/invite_link",
|
||||||
Handler: agent.GetInviteLinkHandler(serverCtx),
|
Handler: agent.GetInviteLinkHandler(serverCtx),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Method: http.MethodGet,
|
|
||||||
Path: "/invite/poster",
|
|
||||||
Handler: agent.GetInvitePosterHandler(serverCtx),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
Method: http.MethodGet,
|
Method: http.MethodGet,
|
||||||
Path: "/level/privilege",
|
Path: "/level/privilege",
|
||||||
|
|||||||
@@ -1389,6 +1389,15 @@ type GetInviteLinkResp struct {
|
|||||||
InviteLink string `json:"invite_link"` // 邀请链接
|
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 {
|
type GetLevelPrivilegeResp struct {
|
||||||
Levels []LevelPrivilegeItem `json:"levels"`
|
Levels []LevelPrivilegeItem `json:"levels"`
|
||||||
UpgradeToGoldFee float64 `json:"upgrade_to_gold_fee"`
|
UpgradeToGoldFee float64 `json:"upgrade_to_gold_fee"`
|
||||||
|
|||||||
Reference in New Issue
Block a user