feat:仓库命名统一

This commit is contained in:
shijing 2026-07-10 11:11:29 +08:00
parent 389fe50cb9
commit bcbb3615b5
9 changed files with 17 additions and 17 deletions

View File

@ -1,6 +1,6 @@
APP_NAME=财务大模型智能问答客服系统 APP_NAME=财务大模型智能问答客服系统
ENVIRONMENT=development ENVIRONMENT=development
DATABASE_URL=postgresql+psycopg://finance_ai:finance_ai@127.0.0.1:5432/finance_ai DATABASE_URL=postgresql+psycopg://finai:finai@127.0.0.1:5432/finai
JWT_SECRET_KEY=change-me-in-production JWT_SECRET_KEY=change-me-in-production
JWT_EXPIRE_MINUTES=480 JWT_EXPIRE_MINUTES=480
SMS_PROVIDER=mock SMS_PROVIDER=mock

View File

@ -12,7 +12,7 @@ python -m uvicorn app.main:app --reload --port 8000
默认会使用 `sqlite:///./finance_ai.db`。生产环境请复制 `.env.example``.env`,并配置: 默认会使用 `sqlite:///./finance_ai.db`。生产环境请复制 `.env.example``.env`,并配置:
```env ```env
DATABASE_URL=postgresql+psycopg://finance_ai:finance_ai@127.0.0.1:5432/finance_ai DATABASE_URL=postgresql+psycopg://finai:finai@127.0.0.1:5432/finai
JWT_SECRET_KEY=replace-with-secret JWT_SECRET_KEY=replace-with-secret
``` ```

View File

@ -1,5 +1,5 @@
[project] [project]
name = "finance-ai-qa-backend" name = "finai-backend"
version = "0.1.0" version = "0.1.0"
description = "FastAPI backend for finance AI intelligent Q&A customer service system." description = "FastAPI backend for finance AI intelligent Q&A customer service system."
requires-python = ">=3.11" requires-python = ">=3.11"

View File

@ -1,6 +1,6 @@
POSTGRES_DB=finance_ai POSTGRES_DB=finai
POSTGRES_USER=finance_ai POSTGRES_USER=finai
POSTGRES_PASSWORD=finance_ai POSTGRES_PASSWORD=finai
DATABASE_URL=postgresql+psycopg://finance_ai:finance_ai@postgres:5432/finance_ai DATABASE_URL=postgresql+psycopg://finai:finai@postgres:5432/finai
JWT_SECRET_KEY=change-me-in-production JWT_SECRET_KEY=change-me-in-production
ALLOWED_ORIGINS=http://localhost:5173,http://127.0.0.1:5173,http://localhost ALLOWED_ORIGINS=http://localhost:5173,http://127.0.0.1:5173,http://localhost

View File

@ -2,15 +2,15 @@ services:
postgres: postgres:
image: postgres:16 image: postgres:16
environment: environment:
POSTGRES_DB: ${POSTGRES_DB:-finance_ai} POSTGRES_DB: ${POSTGRES_DB:-finai}
POSTGRES_USER: ${POSTGRES_USER:-finance_ai} POSTGRES_USER: ${POSTGRES_USER:-finai}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-finance_ai} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-finai}
ports: ports:
- "5432:5432" - "5432:5432"
volumes: volumes:
- pg_data:/var/lib/postgresql/data - pg_data:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-finance_ai} -d ${POSTGRES_DB:-finance_ai}"] test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-finai} -d ${POSTGRES_DB:-finai}"]
interval: 5s interval: 5s
timeout: 3s timeout: 3s
retries: 20 retries: 20
@ -24,7 +24,7 @@ services:
build: build:
context: ../backend context: ../backend
environment: environment:
DATABASE_URL: ${DATABASE_URL:-postgresql+psycopg://finance_ai:finance_ai@postgres:5432/finance_ai} DATABASE_URL: ${DATABASE_URL:-postgresql+psycopg://finai:finai@postgres:5432/finai}
JWT_SECRET_KEY: ${JWT_SECRET_KEY:-change-me-in-production} JWT_SECRET_KEY: ${JWT_SECRET_KEY:-change-me-in-production}
ALLOWED_ORIGINS: ${ALLOWED_ORIGINS:-http://localhost:5173,http://127.0.0.1:5173,http://localhost} ALLOWED_ORIGINS: ${ALLOWED_ORIGINS:-http://localhost:5173,http://127.0.0.1:5173,http://localhost}
SMS_PROVIDER: mock SMS_PROVIDER: mock

View File

@ -32,7 +32,7 @@ DB_USER="${DB_NAME}"
DB_PASS="${DB_PASS:-}" DB_PASS="${DB_PASS:-}"
FORCE_ENV="${FORCE_ENV:-0}" FORCE_ENV="${FORCE_ENV:-0}"
SERVICE_NAME="finance-ai-backend" SERVICE_NAME="finai-backend"
SERVICE_FILE="/etc/systemd/system/${SERVICE_NAME}.service" SERVICE_FILE="/etc/systemd/system/${SERVICE_NAME}.service"
# ─── 工具函数 ────────────────────────────────────────────── # ─── 工具函数 ──────────────────────────────────────────────

View File

@ -1,11 +1,11 @@
{ {
"name": "finance-ai-frontend", "name": "finai-frontend",
"version": "0.1.0", "version": "0.1.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "finance-ai-frontend", "name": "finai-frontend",
"version": "0.1.0", "version": "0.1.0",
"dependencies": { "dependencies": {
"marked": "^18.0.5", "marked": "^18.0.5",

View File

@ -1,5 +1,5 @@
{ {
"name": "finance-ai-frontend", "name": "finai-frontend",
"private": true, "private": true,
"version": "0.1.0", "version": "0.1.0",
"type": "module", "type": "module",

View File

@ -46,7 +46,7 @@
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "3.16.2", "libVersion": "3.16.2",
"appid": "wx8b0db4bf9ae7d778", "appid": "wx8b0db4bf9ae7d778",
"projectname": "finance-ai-miniapp", "projectname": "finai-miniapp",
"condition": {}, "condition": {},
"editorSetting": { "editorSetting": {
"tabIndent": "insertSpaces", "tabIndent": "insertSpaces",