Add routes for daily weekly and the rest

This commit is contained in:
2024-08-09 22:32:58 +02:00
parent 8119775084
commit fce5b8416e
19 changed files with 472 additions and 27 deletions

View File

@@ -4,12 +4,20 @@ import {main} from '../models';
export function CreateFood(arg1:main.Food):Promise<main.WailsFood1>;
export function GetDailyFood():Promise<main.WailsAggregateFood>;
export function GetFood():Promise<main.WailsFood>;
export function GetLastPer100(arg1:string):Promise<main.WailsPer100>;
export function GetMonthlyFood():Promise<main.WailsAggregateFood>;
export function GetSettings():Promise<main.settings>;
export function GetWeeklyFood():Promise<main.WailsAggregateFood>;
export function GetYearlyFood():Promise<main.WailsAggregateFood>;
export function SetSetting(arg1:string,arg2:number):Promise<main.WailsGenericAck>;
export function UpdateFood(arg1:main.Food):Promise<main.WailsFood1>;

View File

@@ -6,6 +6,10 @@ export function CreateFood(arg1) {
return window['go']['main']['App']['CreateFood'](arg1);
}
export function GetDailyFood() {
return window['go']['main']['App']['GetDailyFood']();
}
export function GetFood() {
return window['go']['main']['App']['GetFood']();
}
@@ -14,10 +18,22 @@ export function GetLastPer100(arg1) {
return window['go']['main']['App']['GetLastPer100'](arg1);
}
export function GetMonthlyFood() {
return window['go']['main']['App']['GetMonthlyFood']();
}
export function GetSettings() {
return window['go']['main']['App']['GetSettings']();
}
export function GetWeeklyFood() {
return window['go']['main']['App']['GetWeeklyFood']();
}
export function GetYearlyFood() {
return window['go']['main']['App']['GetYearlyFood']();
}
export function SetSetting(arg1, arg2) {
return window['go']['main']['App']['SetSetting'](arg1, arg2);
}