MCPcopy Index your code
hub / github.com/apache/answer / SearchUserListByName

Method SearchUserListByName

internal/controller/user_controller.go:705–713  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

703// @Success 200 {object} handler.RespBody{data=schema.GetOtherUserInfoResp}
704// @Router /answer/api/v1/user/info/search [get]
705func (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
715func (uc *UserController) setVisitCookies(ctx *gin.Context, visitToken string, force bool) {
716 if !force {

Callers

nothing calls this directly

Calls 4

BindAndCheckFunction · 0.92
HandleResponseFunction · 0.92
SearchUserListByNameMethod · 0.65

Tested by

no test coverage detected