engineerper 1 năm trước cách đây
mục cha
commit
4b5852171d
2 tập tin đã thay đổi với 7 bổ sung8 xóa
  1. 2 3
      api/v1/system/sys_user.go
  2. 5 5
      router/system/sys_user.go

+ 2 - 3
api/v1/system/sys_user.go

@@ -503,10 +503,9 @@ func (b *BaseApi) ConfirmEmail(c *gin.Context) {
 	result := userService.ConfirmEmail(id, code)
 	c.Header("Content-type", "text/html; charset=utf-8")
 	c.Writer.WriteString(result)
-	//response.OkWithData(result, c)
 }
 
-// UnbindEmail 解绑报警邮箱
+// UnbindEmail 管理员解绑报警邮箱
 func (b *BaseApi) UnbindEmail(c *gin.Context) {
 	uid := utils.GetUserID(c)
 	var emails []systemReq.Email
@@ -523,7 +522,7 @@ func (b *BaseApi) UnbindEmail(c *gin.Context) {
 	response.Ok(c)
 }
 
-// UserUnbindEmail 解绑报警邮箱
+// UserUnbindEmail 用户解绑报警邮箱
 func (b *BaseApi) UserUnbindEmail(c *gin.Context) {
 	id := c.Query("id")
 	email := c.Query("email")

+ 5 - 5
router/system/sys_user.go

@@ -21,19 +21,19 @@ func (s *UserRouter) InitUserRouter(Router, PubRouter *gin.RouterGroup) {
 		userRouter.PUT("setSelfInfo", baseApi.SetSelfInfo)                // 设置自身信息
 		userRouter.POST("setUserAuthorities", baseApi.SetUserAuthorities) // 设置用户权限组
 		userRouter.POST("resetPassword", baseApi.ResetPassword)           // 设置用户权限组
-		userRouter.POST("addEmails", baseApi.AddEmails)
-		userRouter.POST("unbindEmail", baseApi.UnbindEmail)
+		userRouter.POST("addEmails", baseApi.AddEmails)                   //管理员邦定游戏
+		userRouter.PUT("unbindEmail", baseApi.UnbindEmail)                //管理员解绑报警邮箱
 	}
 	{
 		userRouterWithoutRecord.POST("getUserList", baseApi.GetUserList) // 分页获取用户列表
 		userRouterWithoutRecord.GET("getUserInfo", baseApi.GetUserInfo)  // 获取自身信息
-		userRouter.GET("ids", baseApi.UserIdList)
+		userRouter.GET("ids", baseApi.UserIdList)                        //获取用户id,username列表
 	}
 
 	//无需认证
 	userPubGroup := PubRouter.Group("user")
 	{
-		userPubGroup.GET("confirm", baseApi.ConfirmEmail)
-		userPubGroup.GET("userUnbindEmail", baseApi.UserUnbindEmail)
+		userPubGroup.GET("confirm", baseApi.ConfirmEmail)            //确认邮件
+		userPubGroup.GET("userUnbindEmail", baseApi.UserUnbindEmail) //用户解绑报警邮箱
 	}
 }