From 975fa1ffacb8775ad424cb884816d8666388b89e Mon Sep 17 00:00:00 2001 From: chenjw28 <792430652@qq.com> Date: Mon, 13 Jul 2026 17:44:37 +0800 Subject: [PATCH] init --- .env | 68 ------------------- src/inventory/{api => }/schemas/__init__.py | 0 .../{api => }/schemas/common_schemas.py | 0 .../{api => }/schemas/customer_schemas.py | 0 .../{api => }/schemas/finance_schemas.py | 0 .../{api => }/schemas/inventory_schemas.py | 0 .../{api => }/schemas/material_schemas.py | 0 .../{api => }/schemas/product_schemas.py | 0 .../schemas/purchase_order_schemas.py | 0 .../{api => }/schemas/sales_order_schemas.py | 0 .../schemas/stock_movement_schemas.py | 0 .../{api => }/schemas/supplier_schemas.py | 0 .../{api => }/schemas/warehouse_schemas.py | 0 13 files changed, 68 deletions(-) delete mode 100644 .env rename src/inventory/{api => }/schemas/__init__.py (100%) rename src/inventory/{api => }/schemas/common_schemas.py (100%) rename src/inventory/{api => }/schemas/customer_schemas.py (100%) rename src/inventory/{api => }/schemas/finance_schemas.py (100%) rename src/inventory/{api => }/schemas/inventory_schemas.py (100%) rename src/inventory/{api => }/schemas/material_schemas.py (100%) rename src/inventory/{api => }/schemas/product_schemas.py (100%) rename src/inventory/{api => }/schemas/purchase_order_schemas.py (100%) rename src/inventory/{api => }/schemas/sales_order_schemas.py (100%) rename src/inventory/{api => }/schemas/stock_movement_schemas.py (100%) rename src/inventory/{api => }/schemas/supplier_schemas.py (100%) rename src/inventory/{api => }/schemas/warehouse_schemas.py (100%) diff --git a/.env b/.env deleted file mode 100644 index f55c52a..0000000 --- a/.env +++ /dev/null @@ -1,68 +0,0 @@ -# 服务配置 -HOST=0.0.0.0 -# ================================ -# 端口配置 - 唯一修改端口的地方 -# ================================ -# 应用端口(容器内端口) - -PORT=10003 -# Docker映射到宿主机的端口(docker-compose使用) -HOST_PORT=10001 -# ================================ - - - -DEBUG=false - -# 文件处理配置 -UPLOAD_DIR=./uploads -MAX_FILE_SIZE=104857600 -ALLOWED_EXTENSIONS=.stp,.step,.stp.gz - -# 几何处理配置 -POINTCLOUD_SAMPLE_COUNT=10000 -MESH_QUALITY=high -PARALLEL_PROCESSING=true - -# 数据库配置 -DB_HOST=szcjw -DB_PORT=5432 -DB_NAME=moldinsight -DB_USER=moldinsight -DB_PASSWORD=Qqs1996* - -# RustFS 对象存储配置 (S3v4 API) -RUSTFS_ENDPOINT=http://szcjw:8010 -RUSTFS_ACCESS_KEY=1RlKXw7v3DAsFr4fLckt -RUSTFS_SECRET_KEY=KjWCHXZOh7GAtkLq0eQgNpMSmE6zw8Ddyiou21bB -RUSTFS_TIMEOUT=30 -RUSTFS_PRESIGNED_URL_EXPIRES=3600 - -# JWT认证配置 -SECRET_KEY=your-secret-key-change-in-production-min-32-chars -ALGORITHM=HS256 -ACCESS_TOKEN_EXPIRE_MINUTES=1440 - -# Redis配置 -REDIS_HOST=szcjw -REDIS_PORT=6379 -REDIS_PASSWORD=Qqs1996* -REDIS_DB=0 - -# 管理员配置 -ADMIN_USERNAME=cjw -ADMIN_PASSWORD=Qqs1996* -ADMIN_EMAIL=792430652@qq.com -ADMIN_FULL_NAME=管理员 - - - -# LLM 增强分析配置(可选) -# 启用后自动生成模具设计评审报告和分模方向推荐 -# 支持 OpenAI 兼容 API(OpenAI / DeepSeek / vLLM / Ollama 等) -LLM_ENABLED=true -LLM_API_URL=https://api.deepseek.com/v1 -LLM_API_KEY=sk-509f968af3e2466bbef8b5949180782c -LLM_MODEL=deepseek-v4-flash -LLM_TIMEOUT=60 -LLM_MAX_TOKENS=2000 \ No newline at end of file diff --git a/src/inventory/api/schemas/__init__.py b/src/inventory/schemas/__init__.py similarity index 100% rename from src/inventory/api/schemas/__init__.py rename to src/inventory/schemas/__init__.py diff --git a/src/inventory/api/schemas/common_schemas.py b/src/inventory/schemas/common_schemas.py similarity index 100% rename from src/inventory/api/schemas/common_schemas.py rename to src/inventory/schemas/common_schemas.py diff --git a/src/inventory/api/schemas/customer_schemas.py b/src/inventory/schemas/customer_schemas.py similarity index 100% rename from src/inventory/api/schemas/customer_schemas.py rename to src/inventory/schemas/customer_schemas.py diff --git a/src/inventory/api/schemas/finance_schemas.py b/src/inventory/schemas/finance_schemas.py similarity index 100% rename from src/inventory/api/schemas/finance_schemas.py rename to src/inventory/schemas/finance_schemas.py diff --git a/src/inventory/api/schemas/inventory_schemas.py b/src/inventory/schemas/inventory_schemas.py similarity index 100% rename from src/inventory/api/schemas/inventory_schemas.py rename to src/inventory/schemas/inventory_schemas.py diff --git a/src/inventory/api/schemas/material_schemas.py b/src/inventory/schemas/material_schemas.py similarity index 100% rename from src/inventory/api/schemas/material_schemas.py rename to src/inventory/schemas/material_schemas.py diff --git a/src/inventory/api/schemas/product_schemas.py b/src/inventory/schemas/product_schemas.py similarity index 100% rename from src/inventory/api/schemas/product_schemas.py rename to src/inventory/schemas/product_schemas.py diff --git a/src/inventory/api/schemas/purchase_order_schemas.py b/src/inventory/schemas/purchase_order_schemas.py similarity index 100% rename from src/inventory/api/schemas/purchase_order_schemas.py rename to src/inventory/schemas/purchase_order_schemas.py diff --git a/src/inventory/api/schemas/sales_order_schemas.py b/src/inventory/schemas/sales_order_schemas.py similarity index 100% rename from src/inventory/api/schemas/sales_order_schemas.py rename to src/inventory/schemas/sales_order_schemas.py diff --git a/src/inventory/api/schemas/stock_movement_schemas.py b/src/inventory/schemas/stock_movement_schemas.py similarity index 100% rename from src/inventory/api/schemas/stock_movement_schemas.py rename to src/inventory/schemas/stock_movement_schemas.py diff --git a/src/inventory/api/schemas/supplier_schemas.py b/src/inventory/schemas/supplier_schemas.py similarity index 100% rename from src/inventory/api/schemas/supplier_schemas.py rename to src/inventory/schemas/supplier_schemas.py diff --git a/src/inventory/api/schemas/warehouse_schemas.py b/src/inventory/schemas/warehouse_schemas.py similarity index 100% rename from src/inventory/api/schemas/warehouse_schemas.py rename to src/inventory/schemas/warehouse_schemas.py