Files
cody-crm/frontend/packages/lib-shared/models/dashboard.ts
wangziqi 72e2110987
Some checks failed
Synchronize to Gitee / repo-sync (push) Has been cancelled
Typos Checking / Spell Check with Typos (push) Has been cancelled
chore: initial commit
2026-06-23 11:56:23 +08:00

77 lines
1.6 KiB
TypeScript

import type { TableQueryParams } from './common';
import type { SelectedUsersItem } from './system/module';
import type { CrmTreeNodeData } from '@cordys/web/src/components/pure/crm-tree/type';
export interface DashboardModuleRenameParams {
id: string;
name: string;
}
export interface DashboardAddModuleParams {
parentId: string;
name: string;
}
export interface DashboardAddParams {
dashboardModuleId: string;
resourceUrl: string;
scopeIds: string[];
name: string;
description: string;
}
export interface DashboardUpdateParams extends DashboardAddParams {
id: string;
}
export interface DashboardRenameParams {
dashboardModuleId: string;
id: string;
name: string;
}
export interface DashboardTableItem {
id: string;
createUser: string;
updateUser: string;
createTime: number;
updateTime: number;
name: string;
resourceUrl: string;
dashboardModuleId: string;
organizationId: string;
pos: number;
scopeId: string;
description: string;
}
export interface DashboardTableQueryParams extends TableQueryParams {
dashboardModuleIds: string[];
}
export type DashboardModuleTreeItem = CrmTreeNodeData<{ type: 'MODULE' | 'DASHBOARD'; myCollect: boolean }>;
export interface DashboardDetail {
dashboardModuleId: string;
members: SelectedUsersItem[];
id: string;
description: string;
dashboardModuleName: string;
name: string;
scopeId: string;
resourceUrl: string;
}
export interface DashboardDragParams {
moveId: string;
targetId: string;
dashboardModuleId: string;
moveMode: string;
}
export interface DashboardModuleDragParams {
dragNodeId: string;
dropNodeId: string;
dropPosition: number;
}