[MM-42742] Add top reactions endpoint (#19850)
Этот коммит содержится в:
@@ -374,6 +374,17 @@ func (c *Context) RequireTimestamp() *Context {
|
||||
return c
|
||||
}
|
||||
|
||||
func (c *Context) RequireTimeRange() *Context {
|
||||
if c.Err != nil {
|
||||
return c
|
||||
}
|
||||
|
||||
if c.Params.TimeRange == 0 {
|
||||
c.SetInvalidURLParam("time_range")
|
||||
}
|
||||
return c
|
||||
}
|
||||
|
||||
func (c *Context) RequireChannelId() *Context {
|
||||
if c.Err != nil {
|
||||
return c
|
||||
|
||||
Ссылка в новой задаче
Block a user