Feat:Using Go to implement user registration logic (#13431)

### What problem does this PR solve?

Feat:Using Go to implement user registration logic

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
chanx
2026-03-06 16:42:49 +08:00
committed by GitHub
parent 37eb533fea
commit 81fd1811b8
21 changed files with 660 additions and 207 deletions

View File

@ -65,11 +65,11 @@ func (h *SearchHandler) ListSearchApps(c *gin.Context) {
}
// Get user by access token
user, err := h.userService.GetUserByToken(token)
user, code, err := h.userService.GetUserByToken(token)
if err != nil {
c.JSON(http.StatusUnauthorized, gin.H{
"code": 401,
"message": "Invalid access token",
"code": code,
"message": err.Error(),
})
return
}