Files
calorie_tracker_2/dist/dashboard/dashboard.controller.d.ts
Jp 3dc74b6aa2 feat(docker): add Docker support and enhance dashboard data
- Add Dockerfile and docker-compose.yml for containerized deployment
- Update server to listen on all network interfaces for Docker compatibility
- Add .dockerignore to exclude unnecessary files from build context
- Enhance dashboard controller with additional user data, trends, and suggestions
- Update package.json scripts for proper Docker build workflow
2026-02-01 21:26:26 +08:00

51 lines
1.4 KiB
TypeScript

import { UtilsService } from '../utils/utils.service';
import { UserGoal } from '../models/user-goal.model';
import { WeightLog } from '../models/weight-log.model';
import { Response } from 'express';
export declare class DashboardController {
private utilsService;
private userGoalModel;
private weightLogModel;
constructor(utilsService: UtilsService, userGoalModel: typeof UserGoal, weightLogModel: typeof WeightLog);
getDashboard(req: any, res: Response): Promise<{
user: any;
current_user: any;
nutrition: {
calories: number;
protein: number;
carbs: number;
fat: number;
meals: any[];
};
water: {
total_ml: number;
logs: {
id: any;
amount_ml: number;
time: string;
}[];
};
goals: UserGoal;
weightLogToday: WeightLog;
weightChange: any;
remaining: {
calories: number;
protein: number;
carbs: number;
fat: number;
water: number;
};
macro_percentages: {
protein: number;
carbs: number;
fat: number;
};
suggestions: any[];
calorie_trend: any[];
weight_trend: {
date: Date;
weight_kg: number;
}[];
}>;
}