feat: 搭建门店与品牌数据同步及搜索服务基础框架
实现门店数据定时同步:从外部API拉取数据,去重后写入SQLite FTS5索引 实现品牌数据定时同步:从MySQL拉取品牌分组,写入SQLite FTS5索引 提供FastAPI全文搜索接口,支持门店和品牌的模糊匹配 封装公共基础设施:配置管理、日志轮转、SQLite数据库兼容处理 添加单元测试、启停脚本、Docker部署配置与项目设计文档 删除旧的merchants_fts.db数据库文件
Showing
72 changed files
with
3849 additions
and
443 deletions
.gitignore
0 → 100644
app/__init__.py
0 → 100644
File mode changed
app/brand_sync/__init__.py
0 → 100644
File mode changed
app/brand_sync/fetcher.py
0 → 100644
app/brand_sync/scheduler.py
0 → 100644
app/brand_sync/syncer.py
0 → 100644
app/core/__init__.py
0 → 100644
File mode changed
app/core/config.py
0 → 100644
app/core/db.py
0 → 100644
app/core/log.py
0 → 100644
app/search/__init__.py
0 → 100644
File mode changed
app/search/api.py
0 → 100644
app/search/models.py
0 → 100644
app/search/searcher.py
0 → 100644
app/sync/__init__.py
0 → 100644
File mode changed
app/sync/fetcher.py
0 → 100644
app/sync/scheduler.py
0 → 100644
app/sync/syncer.py
0 → 100644
bin/run_api.py
0 → 100644
bin/run_brand_sync.py
0 → 100644
bin/run_sync.py
0 → 100644
docker/Dockerfile.api
0 → 100644
docker/Dockerfile.sync
0 → 100644
docker/docker-compose.yml
0 → 100644
merchants_fts.db
deleted
100644 → 0
No preview for this file type
pyproject.toml
0 → 100644
search_merchants.py
deleted
100644 → 0
sync_data.py
deleted
100644 → 0
tests/__init__.py
0 → 100644
File mode changed
tests/conftest.py
0 → 100644
tests/test_brand_sync/__init__.py
0 → 100644
File mode changed
tests/test_brand_sync/test_fetcher.py
0 → 100644
tests/test_brand_sync/test_syncer.py
0 → 100644
tests/test_search/__init__.py
0 → 100644
File mode changed
tests/test_search/test_brand_searcher.py
0 → 100644
tests/test_search/test_searcher.py
0 → 100644
tests/test_sync/__init__.py
0 → 100644
File mode changed
tests/test_sync/test_syncer.py
0 → 100644
wxz-align-spec/2-detailed-design/overview.md
0 → 100644
This diff is collapsed.
Click to expand it.
wxz-align-spec/3-operation-flow/overview.md
0 → 100644
wxz-align-spec/4-database-schema/overview.md
0 → 100644
wxz-align-spec/5-api-spec/overview.md
0 → 100644
wxz-align-spec/sp-1-mvplogic/brand-sync.md
0 → 100644
wxz-align-spec/sp-1-mvplogic/overview.md
0 → 100644
-
Please register or sign in to post a comment