Files
backend/services/ReportService.h
T

36 lines
1.3 KiB
C++

#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