summaryrefslogtreecommitdiff
path: root/components/client-table/preset-types.ts
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-11-30 17:12:17 +0900
committerjoonhoekim <26rote@gmail.com>2025-11-30 17:12:17 +0900
commit81aa92fecc298d66eb420468316bcf7a7213171c (patch)
tree1474e4bc2acbeef3cf76e90dadb738169c8dda86 /components/client-table/preset-types.ts
parenteea317cb775587d002e7a97d62220e5c8f37066d (diff)
(김준회) group 기능 추가, 기타 버그 수정, preset 기능추가, 테스트 페이지 추가
Diffstat (limited to 'components/client-table/preset-types.ts')
-rw-r--r--components/client-table/preset-types.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/components/client-table/preset-types.ts b/components/client-table/preset-types.ts
new file mode 100644
index 00000000..072d918b
--- /dev/null
+++ b/components/client-table/preset-types.ts
@@ -0,0 +1,13 @@
+export interface Preset {
+ id: string;
+ name: string;
+ setting: any; // JSON object for table state
+ createdAt: Date;
+ updatedAt: Date;
+}
+
+export interface PresetRepository {
+ getPresets(tableKey: string, userId: number): Promise<{ success: boolean; data?: Preset[]; error?: string }>;
+ savePreset(userId: number, tableKey: string, name: string, setting: any): Promise<{ success: boolean; error?: string }>;
+ deletePreset(id: string): Promise<{ success: boolean; error?: string }>;
+}