Commit 35c77337 authored by chenweijian's avatar chenweijian

接口优化

parent a829b62a
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment