diff --git a/route/router.go b/route/router.go index e46b61007df59e0c3785c1a2179d2d566ce3ad0b..11d84372f2feb45abefcf2201cf2acdd8c3776f8 100644 --- a/route/router.go +++ b/route/router.go @@ -32,7 +32,6 @@ func InitRouter() *gin.Engine { user.GET("/bag/:resType", wrapper(user_r.UserBag)) user.GET("/detail", EncryptHandle, wrapper(user_r.UserDetail)) user.GET("/detail/:userExternalId", EncryptHandle, wrapper(user_r.UserDetailByExternalId)) - user.GET("/detail/room", EncryptHandle, wrapper(user_r.GetUserDetailInRoom)) } cp := v2.Group("/cp") { @@ -66,6 +65,7 @@ func InitRouter() *gin.Engine { userV2.GET("/invite/apply", wrapper(invite_r.InviteApplyList)) userV2.GET("/invite/platform", wrapper(invite_r.PromotionPlatform)) userV2.GET("/invite/period", wrapper(invite_r.AgentPeriod)) + userV2.GET("/detail/room", EncryptHandle, wrapper(user_r.GetUserDetailInRoom)) } inner := r.Group("/inner") inner.Use(ExceptionHandle, LoggerHandle) diff --git a/route/user_r/user.go b/route/user_r/user.go index f3049bad278430b108f00cce1e96b510503b5a6a..2684af6cb3d46f5911110e041dfcb47c8de16d7b 100644 --- a/route/user_r/user.go +++ b/route/user_r/user.go @@ -113,7 +113,7 @@ func UserDetailByExternalId(c *gin.Context) (*mycontext.MyContext, error) { // @Param userExternalId query string true "userExternalId" // @Param groupId query string false "群组id,当传了该id,则返回该用户在该群组的身份" // @Success 200 {object} user_cv.CvUserDetail -// @Router /v1/user/detail/room [get] +// @Router /v2/user/detail/room [get] func GetUserDetailInRoom(c *gin.Context) (*mycontext.MyContext, error) { myContext := mycontext.CreateMyContext(c.Keys) userId, lang, err := req.GetUserIdLang(c, myContext)