Implement compliance endpoints for APIv4 (#5683)
* Implement compliance endpoints for APIv4 * Add paging to get reports endpoint
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a284cd8c18
Коммит
3ebfb36953
@@ -24,6 +24,7 @@ type ApiParams struct {
|
||||
FileId string
|
||||
CommandId string
|
||||
HookId string
|
||||
ReportId string
|
||||
EmojiId string
|
||||
Email string
|
||||
Username string
|
||||
@@ -68,6 +69,10 @@ func ApiParamsFromRequest(r *http.Request) *ApiParams {
|
||||
params.HookId = val
|
||||
}
|
||||
|
||||
if val, ok := props["report_id"]; ok {
|
||||
params.ReportId = val
|
||||
}
|
||||
|
||||
if val, ok := props["emoji_id"]; ok {
|
||||
params.EmojiId = val
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user