feat: enhance admin product management with AI categorization, product status updates, and email editing for users

This commit is contained in:
Nils-Johan Gynther
2026-04-25 08:46:54 +02:00
parent a02950c97a
commit 6abe69e12d
6 changed files with 781 additions and 65 deletions
+7
View File
@@ -5,7 +5,13 @@ class AuthApiPaths {
class ProductApiPaths {
static const list = '/products';
static const pending = '/products/pending';
static const aiCategorizeBulk = '/products/ai-categorize-bulk';
static const deleted = '/products/deleted';
static const merge = '/products/merge';
static String setStatus(int id) => '/products/$id/status';
static String update(int id) => '/products/$id';
static String remove(int id) => '/products/$id';
static String restore(int id) => '/products/$id/restore';
static const bulkUpdate = '/products/bulk-update';
}
@@ -44,6 +50,7 @@ class UserApiPaths {
static const list = '/users';
static String setRole(int id) => '/users/$id/role';
static String setPremium(int id) => '/users/$id/premium';
static String updateEmail(int id) => '/users/$id/email';
static String delete(int id) => '/users/$id';
static String resetPassword(int id) => '/users/$id/reset-password';
}