백엔드 수정

This commit is contained in:
dohyeons 2025-10-16 11:03:57 +09:00
parent 9168844fab
commit a7123216f2
1 changed files with 13 additions and 5 deletions

View File

@ -4,8 +4,8 @@
export interface DashboardElement { export interface DashboardElement {
id: string; id: string;
type: 'chart' | 'widget'; type: "chart" | "widget";
subtype: 'bar' | 'pie' | 'line' | 'exchange' | 'weather'; subtype: "bar" | "pie" | "line" | "exchange" | "weather";
position: { position: {
x: number; x: number;
y: number; y: number;
@ -17,7 +17,7 @@ export interface DashboardElement {
title: string; title: string;
content?: string; content?: string;
dataSource?: { dataSource?: {
type: 'api' | 'database' | 'static'; type: "api" | "database" | "static";
endpoint?: string; endpoint?: string;
query?: string; query?: string;
refreshInterval?: number; refreshInterval?: number;
@ -28,7 +28,7 @@ export interface DashboardElement {
xAxis?: string; xAxis?: string;
yAxis?: string; yAxis?: string;
groupBy?: string; groupBy?: string;
aggregation?: 'sum' | 'avg' | 'count' | 'max' | 'min'; aggregation?: "sum" | "avg" | "count" | "max" | "min";
colors?: string[]; colors?: string[];
title?: string; title?: string;
showLegend?: boolean; showLegend?: boolean;
@ -58,6 +58,10 @@ export interface CreateDashboardRequest {
elements: DashboardElement[]; elements: DashboardElement[];
tags?: string[]; tags?: string[];
category?: string; category?: string;
settings?: {
resolution?: string;
backgroundColor?: string;
};
} }
export interface UpdateDashboardRequest { export interface UpdateDashboardRequest {
@ -67,6 +71,10 @@ export interface UpdateDashboardRequest {
elements?: DashboardElement[]; elements?: DashboardElement[];
tags?: string[]; tags?: string[];
category?: string; category?: string;
settings?: {
resolution?: string;
backgroundColor?: string;
};
} }
export interface DashboardListQuery { export interface DashboardListQuery {
@ -83,7 +91,7 @@ export interface DashboardShare {
dashboardId: string; dashboardId: string;
sharedWithUser?: string; sharedWithUser?: string;
sharedWithRole?: string; sharedWithRole?: string;
permissionLevel: 'view' | 'edit' | 'admin'; permissionLevel: "view" | "edit" | "admin";
createdBy: string; createdBy: string;
createdAt: string; createdAt: string;
expiresAt?: string; expiresAt?: string;