Implement compliance endpoints for APIv4 (#5683)

* Implement compliance endpoints for APIv4

* Add paging to get reports endpoint
Этот коммит содержится в:
Joram Wilander
2017-03-13 10:14:16 -04:00
коммит произвёл GitHub
родитель a284cd8c18
Коммит 3ebfb36953
11 изменённых файлов: 241 добавлений и 9 удалений

Просмотреть файл

@@ -396,6 +396,17 @@ func (c *Context) RequireFileId() *Context {
return c
}
func (c *Context) RequireReportId() *Context {
if c.Err != nil {
return c
}
if len(c.Params.ReportId) != 26 {
c.SetInvalidUrlParam("report_id")
}
return c
}
func (c *Context) RequireTeamName() *Context {
if c.Err != nil {
return c