Complete backend MVP

This commit is contained in:
gabdevele
2026-06-05 11:56:28 +02:00 Unverified
parent 25c280f38b
commit 5974f01daa
25 changed files with 3468 additions and 1137 deletions
+33
View File
@@ -0,0 +1,33 @@
#pragma once
#include "common/Auth.h"
#include <json/json.h>
#include <optional>
#include <string>
namespace visione::services
{
class UserService
{
public:
Json::Value listNotifications(const auth::UserContext &user,
const std::optional<std::string> &page,
const std::optional<std::string> &perPage);
Json::Value markNotificationRead(const auth::UserContext &user,
long long notificationId);
Json::Value rewards(const auth::UserContext &user,
const std::optional<std::string> &page,
const std::optional<std::string> &perPage);
static void createNotification(long long userId,
const std::string &type,
const std::string &title,
const std::string &body,
std::optional<long long> reportId);
static void awardReportOwner(long long reportId,
const std::string &reason,
int points);
};
} // namespace visione::services