(c *gin.Context)
| 222 | } |
| 223 | |
| 224 | func 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参数 |
nothing calls this directly
no test coverage detected