MCPcopy
hub / github.com/koderover/zadig / GetUserSetting

Function GetUserSetting

pkg/microservice/user/core/handler/user/user.go:224–233  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

222}
223
224func GetUserSetting(c *gin.Context) {
225 ctx := internalhandler.NewContext(c)
226 defer func() { internalhandler.JSONResponse(c, ctx) }()
227 uid := c.Param("uid")
228 if ctx.UserID != uid {
229 ctx.RespErr = e.ErrForbidden
230 return
231 }
232 ctx.Resp, ctx.RespErr = permission.GetUserSetting(uid, ctx.Logger)
233}
234
235// @Summary 获取用户列表
236// @Description 获取用户列表只需要传page和per_page参数,搜索时需要再加上name参数

Callers

nothing calls this directly

Calls 1

GetUserSettingFunction · 0.92

Tested by

no test coverage detected