diff --git a/route/invite_r/party_invite.go b/route/invite_r/party_invite.go index 3f7355cead51c6f2c7a5054ba4f6268e8c9701a0..5449be64e372527bbe047e5fc02cfbf4a502818e 100644 --- a/route/invite_r/party_invite.go +++ b/route/invite_r/party_invite.go @@ -212,3 +212,13 @@ func InviteApplyList(c *gin.Context) (*mycontext.MyContext, error) { resp.ResponsePageOk(c, res, total, param.PageSize, param.PageIndex) return myCtx, nil } + +// @tags 推广团队管理 +// @Summary 平台列表 +// @Success 200 {object} []string +// @Router /v2/user/invite/platform [get] +func PromotionPlatform(c *gin.Context) (*mycontext.MyContext, error) { + myCtx := mycontext.CreateMyContext(c.Keys) + resp.ResponseOk(c, []string{"Falla", "Yalla", "Whisper", "Ahlan", "Mashi", "YoYo", "Yoho", "Echo", "Hawa", "Yalla Ludo", "Hafla"}) + return myCtx, nil +} diff --git a/route/router.go b/route/router.go index 2217830d79458b3e30159e3441a819f59439aeca..39cdfc150470193c924fa03fc571e7c87d0f3f10 100755 --- a/route/router.go +++ b/route/router.go @@ -57,6 +57,7 @@ func InitRouter() *gin.Engine { { userV2.POST("/invite/apply", wrapper(invite_r.InviteApply)) userV2.GET("/invite/apply", wrapper(invite_r.InviteApplyList)) + userV2.GET("/invite/platform", wrapper(invite_r.PromotionPlatform)) } inner := r.Group("/inner") inner.Use(ExceptionHandle, LoggerHandle)