Add Visione backend foundation

This commit is contained in:
gabdevele
2026-06-02 19:22:00 +02:00 Unverified
commit 580789ac83
52 changed files with 5008 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
#pragma once
#include "common/Auth.h"
#include <json/json.h>
#include <optional>
#include <string>
namespace visione::services
{
class ReportService
{
public:
Json::Value createReport(const auth::UserContext &user, const Json::Value &body);
Json::Value listReports(const auth::UserContext &user,
const std::optional<std::string> &status,
const std::optional<std::string> &categoryId,
const std::optional<std::string> &areaId);
Json::Value reportDetail(const auth::UserContext &user, long long reportId);
Json::Value updateStatus(const auth::UserContext &user,
long long reportId,
const Json::Value &body);
Json::Value addMessage(const auth::UserContext &user,
long long reportId,
const Json::Value &body);
Json::Value listMessages(const auth::UserContext &user, long long reportId);
Json::Value assignTeam(const auth::UserContext &user,
long long reportId,
const Json::Value &body);
Json::Value addFeedback(const auth::UserContext &user,
long long reportId,
const Json::Value &body);
};
} // namespace visione::services