ts and app detail

This commit is contained in:
archer
2023-07-20 21:50:11 +08:00
parent f362ba2589
commit b7b20a353f
26 changed files with 26 additions and 20 deletions

View File

@@ -46,7 +46,7 @@ export const triggerModelCollection = (appId: string) =>
// ====================== data
export const getAppTotalUsage = (data: { appId: string }) =>
POST<{ date: Date; total: number }[]>(`/app/data/totalUsage`, {
POST<{ date: String; total: number }[]>(`/app/data/totalUsage`, {
...data,
start: addDays(new Date(), -13),
end: addDays(new Date(), 1)