Rework lastper100 to return a food instead of float32
This commit is contained in:
2
frontend/wailsjs/go/main/App.d.ts
vendored
2
frontend/wailsjs/go/main/App.d.ts
vendored
@@ -14,7 +14,7 @@ export function GetDailyWeight():Promise<main.WailsAggregateWeight>;
|
||||
|
||||
export function GetFood():Promise<main.WailsFood>;
|
||||
|
||||
export function GetLastPer100(arg1:string):Promise<main.WailsPer100>;
|
||||
export function GetLastPer100(arg1:string):Promise<main.WailsFood1>;
|
||||
|
||||
export function GetMonthlyFood():Promise<main.WailsAggregateFood>;
|
||||
|
||||
|
@@ -206,22 +206,6 @@ export namespace main {
|
||||
this.error = source["error"];
|
||||
}
|
||||
}
|
||||
export class WailsPer100 {
|
||||
data: number;
|
||||
success: boolean;
|
||||
error?: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new WailsPer100(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.data = source["data"];
|
||||
this.success = source["success"];
|
||||
this.error = source["error"];
|
||||
}
|
||||
}
|
||||
export class Weight {
|
||||
rowid: number;
|
||||
date: string;
|
||||
|
Reference in New Issue
Block a user