SearchUserListByName godoc @Summary SearchUserListByName @Description SearchUserListByName @Tags User @Accept json @Produce json @Security ApiKeyAuth @Param username query string true "username" @Success 200 {object} handler.RespBody{data=schema.GetOtherUserInfoResp} @Router /answer/api/v1/user/info
(ctx *gin.Context)
| 703 | // @Success 200 {object} handler.RespBody{data=schema.GetOtherUserInfoResp} |
| 704 | // @Router /answer/api/v1/user/info/search [get] |
| 705 | func (uc *UserController) SearchUserListByName(ctx *gin.Context) { |
| 706 | req := &schema.GetOtherUserInfoByUsernameReq{} |
| 707 | if handler.BindAndCheck(ctx, req) { |
| 708 | return |
| 709 | } |
| 710 | req.UserID = middleware.GetLoginUserIDFromContext(ctx) |
| 711 | resp, err := uc.userService.SearchUserListByName(ctx, req) |
| 712 | handler.HandleResponse(ctx, err, resp) |
| 713 | } |
| 714 | |
| 715 | func (uc *UserController) setVisitCookies(ctx *gin.Context, visitToken string, force bool) { |
| 716 | if !force { |
nothing calls this directly
no test coverage detected