feat: 支持食物库接口
This commit is contained in:
@@ -65,11 +65,11 @@ export async function getDietRecords({
|
||||
total: number
|
||||
page: number
|
||||
limit: number
|
||||
}>(`/users/diet-records${params}`);
|
||||
}>(`/diet-records${params}`);
|
||||
}
|
||||
|
||||
export async function deleteDietRecord(recordId: number): Promise<void> {
|
||||
await api.delete(`/users/diet-records/${recordId}`);
|
||||
await api.delete(`/diet-records/${recordId}`);
|
||||
}
|
||||
|
||||
export function calculateNutritionSummary(records: DietRecord[]): NutritionSummary {
|
||||
|
||||
Reference in New Issue
Block a user