From 4a994e335ed67c080e91e8d807b0319ad3e07410 Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Mon, 3 Jul 2023 10:43:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BE=E5=AF=B9=E9=82=80=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/invite_r/party_invite.go | 10 ++++++++++ route/router.go | 1 + 2 files changed, 11 insertions(+) diff --git a/route/invite_r/party_invite.go b/route/invite_r/party_invite.go index 3f7355c..5449be6 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 2217830..39cdfc1 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) -- 2.22.0