feat: enhance Admin and report services with CRUD operations and intervention links

This commit is contained in:
gabdevele
2026-06-15 11:47:44 +02:00 Unverified
parent d684477ac3
commit 170fadbfe0
13 changed files with 1258 additions and 164 deletions
+7
View File
@@ -19,14 +19,18 @@ class ReportService
Json::Value assignedReports(const auth::UserContext &user,
const std::optional<std::string> &page,
const std::optional<std::string> &perPage);
Json::Value listAreas();
Json::Value openReports(const auth::UserContext &user,
const std::optional<std::string> &page,
const std::optional<std::string> &perPage);
Json::Value otherOperatorReports(const auth::UserContext &user,
const std::optional<std::string> &page,
const std::optional<std::string> &perPage);
Json::Value listCategories(const auth::UserContext &user);
Json::Value listOperatorTeams(const auth::UserContext &user);
Json::Value reportDetail(const auth::UserContext &user, long long reportId);
Json::Value interventionSummary(const auth::UserContext &user, long long reportId);
Json::Value publicInterventionSummary(const std::string &token);
Json::Value updateStatus(const auth::UserContext &user,
long long reportId,
const Json::Value &body);
@@ -48,6 +52,9 @@ class ReportService
long long reportId,
long long messageId,
const Json::Value &body);
Json::Value teamSuggestions(const auth::UserContext &user, long long reportId);
Json::Value createInterventionLink(const auth::UserContext &user, long long reportId);
Json::Value revokeInterventionLink(const auth::UserContext &user, long long reportId);
Json::Value openDataReports(const std::optional<std::string> &page,
const std::optional<std::string> &perPage);
Json::Value canAddMedia(const auth::UserContext &user, long long reportId);