(v T, slice ...T)
| 66 | } |
| 67 | |
| 68 | func argsContains[T comparable](v T, slice ...T) bool { |
| 69 | return utils.SliceContains(slice, v) |
| 70 | } |
| 71 | |
| 72 | func getUserInfo(c *gin.Context) (bool, uint, bool) { |
| 73 | if user, ok := c.Request.Context().Value(conf.UserKey).(*model.User); ok { |
no test coverage detected