147 lines
3.8 KiB
TypeScript
147 lines
3.8 KiB
TypeScript
import Workspace from "@/pages/workspace/main";
|
|
import ListAutoLike from "@/pages/workspace/auto-like/list";
|
|
import NewAutoLike from "@/pages/workspace/auto-like/new";
|
|
import RecordAutoLike from "@/pages/workspace/auto-like/record";
|
|
import AutoGroup from "@/pages/workspace/auto-group/AutoGroup";
|
|
import AutoGroupDetail from "@/pages/workspace/auto-group/Detail";
|
|
import GroupPush from "@/pages/workspace/group-push/list";
|
|
import FormGroupPush from "@/pages/workspace/group-push/form";
|
|
import DetailGroupPush from "@/pages/workspace/group-push/detail";
|
|
import MomentsSync from "@/pages/workspace/moments-sync/MomentsSync";
|
|
import MomentsSyncDetail from "@/pages/workspace/moments-sync/Detail";
|
|
import NewMomentsSync from "@/pages/workspace/moments-sync/new";
|
|
import AIAssistant from "@/pages/workspace/ai-assistant/AIAssistant";
|
|
import TrafficDistribution from "@/pages/workspace/traffic-distribution/TrafficDistribution";
|
|
import TrafficDistributionDetail from "@/pages/workspace/traffic-distribution/Detail";
|
|
import NewDistribution from "@/pages/workspace/traffic-distribution/NewDistribution";
|
|
import PlaceholderPage from "@/components/PlaceholderPage";
|
|
|
|
const workspaceRoutes = [
|
|
{
|
|
path: "/workspace",
|
|
element: <Workspace />,
|
|
auth: true,
|
|
},
|
|
// 自动点赞
|
|
{
|
|
path: "/workspace/auto-like",
|
|
element: <ListAutoLike />,
|
|
auth: true,
|
|
},
|
|
{
|
|
path: "/workspace/auto-like/new",
|
|
element: <NewAutoLike />,
|
|
auth: true,
|
|
},
|
|
{
|
|
path: "/workspace/auto-like/:id",
|
|
element: <RecordAutoLike />,
|
|
auth: true,
|
|
},
|
|
{
|
|
path: "/workspace/auto-like/:id/edit",
|
|
element: <NewAutoLike />,
|
|
auth: true,
|
|
},
|
|
// 自动分组
|
|
{
|
|
path: "/workspace/auto-group",
|
|
element: <AutoGroup />,
|
|
auth: true,
|
|
},
|
|
{
|
|
path: "/workspace/auto-group/:id",
|
|
element: <AutoGroupDetail />,
|
|
auth: true,
|
|
},
|
|
// 群发推送
|
|
{
|
|
path: "/workspace/group-push",
|
|
element: <GroupPush />,
|
|
auth: true,
|
|
},
|
|
{
|
|
path: "/workspace/group-push/:id",
|
|
element: <DetailGroupPush />,
|
|
auth: true,
|
|
},
|
|
{
|
|
path: "/workspace/group-push/new",
|
|
element: <FormGroupPush />,
|
|
auth: true,
|
|
},
|
|
{
|
|
path: "/workspace/group-push/:id/edit",
|
|
element: <FormGroupPush />,
|
|
auth: true,
|
|
},
|
|
// 朋友圈同步
|
|
{
|
|
path: "/workspace/moments-sync",
|
|
element: <MomentsSync />,
|
|
auth: true,
|
|
},
|
|
{
|
|
path: "/workspace/moments-sync/new",
|
|
element: <NewMomentsSync />,
|
|
auth: true,
|
|
},
|
|
{
|
|
path: "/workspace/moments-sync/:id",
|
|
element: <MomentsSyncDetail />,
|
|
auth: true,
|
|
},
|
|
{
|
|
path: "/workspace/moments-sync/edit/:id",
|
|
element: <NewMomentsSync />,
|
|
auth: true,
|
|
},
|
|
// AI助手
|
|
{
|
|
path: "/workspace/ai-assistant",
|
|
element: <AIAssistant />,
|
|
auth: true,
|
|
},
|
|
// AI数据分析
|
|
{
|
|
path: "/workspace/ai-analyzer",
|
|
element: <PlaceholderPage title="AI数据分析" />,
|
|
auth: true,
|
|
},
|
|
// AI策略优化
|
|
{
|
|
path: "/workspace/ai-strategy",
|
|
element: <PlaceholderPage title="AI策略优化" />,
|
|
auth: true,
|
|
},
|
|
// AI销售预测
|
|
{
|
|
path: "/workspace/ai-forecast",
|
|
element: <PlaceholderPage title="AI销售预测" />,
|
|
auth: true,
|
|
},
|
|
// 流量分发
|
|
{
|
|
path: "/workspace/traffic-distribution",
|
|
element: <TrafficDistribution />,
|
|
auth: true,
|
|
},
|
|
{
|
|
path: "/workspace/traffic-distribution/new",
|
|
element: <NewDistribution />,
|
|
auth: true,
|
|
},
|
|
{
|
|
path: "/workspace/traffic-distribution/edit/:id",
|
|
element: <NewDistribution />,
|
|
auth: true,
|
|
},
|
|
{
|
|
path: "/workspace/traffic-distribution/:id",
|
|
element: <TrafficDistributionDetail />,
|
|
auth: true,
|
|
},
|
|
];
|
|
|
|
export default workspaceRoutes;
|