35 lines
775 B
TypeScript
35 lines
775 B
TypeScript
import { Injectable } from '@nestjs/common';
|
|
|
|
@Injectable()
|
|
export class AdminService {
|
|
getDashboardStats() {
|
|
return {
|
|
totalCompanies: 30,
|
|
totalUsers: 1250,
|
|
totalJobs: 990,
|
|
totalApplications: 3500,
|
|
activeSubscriptions: 25,
|
|
monthlyRevenue: 12500,
|
|
recentSignups: 45,
|
|
conversionRate: 8.5,
|
|
};
|
|
}
|
|
|
|
getRevenueByMonth() {
|
|
return [
|
|
{ month: 'Jan', revenue: 8500 },
|
|
{ month: 'Feb', revenue: 9200 },
|
|
{ month: 'Mar', revenue: 10100 },
|
|
{ month: 'Apr', revenue: 11500 },
|
|
{ month: 'May', revenue: 12500 },
|
|
];
|
|
}
|
|
|
|
getSubscriptionsByPlan() {
|
|
return [
|
|
{ plan: 'Starter', count: 10 },
|
|
{ plan: 'Professional', count: 12 },
|
|
{ plan: 'Enterprise', count: 3 },
|
|
];
|
|
}
|
|
}
|