refactor: 优化代码结构和类型定义

feat(types): 添加express.d.ts类型引用
style: 格式化express.d.ts中的接口定义
refactor: 移除未使用的AntFC类型导入
chore: 删除自动生成的.umi-production文件
feat: 添加店铺管理相关表和初始化脚本
docs: 更新安全规则和交互指南文档
refactor: 统一使用FC类型替代React.FC
perf: 优化图表组件导入方式
style: 添加.prettierrc配置文件
refactor: 调整组件导入顺序和结构
feat: 添加平台库存管理路由
fix: 修复订单同步时的库存检查逻辑
docs: 更新RBAC设计和租户管理文档
refactor: 优化部门控制器代码
This commit is contained in:
2026-03-30 01:20:57 +08:00
parent d327706087
commit 1b14947e7b
106 changed files with 11251 additions and 38565 deletions

View File

@@ -4,6 +4,7 @@ import {
useCallback,
useMemo,
useNavigate,
FC,
Card,
Table,
Button,
@@ -137,7 +138,7 @@ const PLATFORM_CONFIG: Record<string, { icon: React.ReactNode; color: string }>
eBay: { icon: <GlobalOutlined />, color: '#e53238' },
};
const ProductList: React.FC = () => {
const ProductList: FC = () => {
const navigate = useNavigate();
const [products, setProducts] = useState<Product[]>([]);
const [loading, setLoading] = useState(false);

View File

@@ -13,16 +13,6 @@ import {
message,
Alert,
Badge,
LineChart,
Line,
AreaChart,
Area,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Legend,
ResponsiveContainer,
AlertOutlined,
UpOutlined,
DownOutlined,
@@ -34,6 +24,7 @@ import {
Option,
FC,
} from '@/imports';
import { LineChart, Line, AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts';
import { productDataSource } from '@/services/productDataSource';
interface ProfitData {