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

Method UserStaff

internal/controller/user_controller.go:659–667  ·  view source on GitHub ↗

UserStaff get user staff @Summary get user staff @Description get user staff @Tags User @Accept json @Produce json @Param username query string true "username" @Param page_size query string true "page_size" @Success 200 {object} handler.RespBody{data=schema.GetUserStaffResp} @Router /answer/api/v1/u

(ctx *gin.Context)

Source from the content-addressed store, hash-verified

657// @Success 200 {object} handler.RespBody{data=schema.GetUserStaffResp}
658// @Router /answer/api/v1/user/staff [get]
659func (uc *UserController) UserStaff(ctx *gin.Context) {
660 req := &schema.GetUserStaffReq{}
661 if handler.BindAndCheck(ctx, req) {
662 return
663 }
664
665 resp, err := uc.userService.GetUserStaff(ctx, req)
666 handler.HandleResponse(ctx, err, resp)
667}
668
669// UserUnsubscribeNotification unsubscribe notification
670// @Summary unsubscribe notification

Callers

nothing calls this directly

Calls 3

BindAndCheckFunction · 0.92
HandleResponseFunction · 0.92
GetUserStaffMethod · 0.80

Tested by

no test coverage detected