feat: enhance Admin and report services with CRUD operations and intervention links
This commit is contained in:
@@ -12,11 +12,8 @@ namespace visione::services
|
||||
class AdminService
|
||||
{
|
||||
public:
|
||||
Json::Value listCategories();
|
||||
Json::Value createCategory(const auth::UserContext &user, const Json::Value &body);
|
||||
Json::Value listAreas();
|
||||
Json::Value createArea(const auth::UserContext &user, const Json::Value &body);
|
||||
Json::Value listTeams();
|
||||
Json::Value createTeam(const auth::UserContext &user, const Json::Value &body);
|
||||
Json::Value overviewStats(const auth::UserContext &user);
|
||||
Json::Value listUsers(const auth::UserContext &user);
|
||||
@@ -27,6 +24,15 @@ class AdminService
|
||||
Json::Value updateModeration(const auth::UserContext &user,
|
||||
long long flagId,
|
||||
const Json::Value &body);
|
||||
Json::Value updateCategory(const auth::UserContext &user,
|
||||
long long categoryId,
|
||||
const Json::Value &body);
|
||||
Json::Value updateArea(const auth::UserContext &user,
|
||||
long long areaId,
|
||||
const Json::Value &body);
|
||||
Json::Value updateTeam(const auth::UserContext &user,
|
||||
long long teamId,
|
||||
const Json::Value &body);
|
||||
Json::Value updateUserRoles(const auth::UserContext &user,
|
||||
long long targetUserId,
|
||||
const Json::Value &body);
|
||||
|
||||
Reference in New Issue
Block a user