更新图片

This commit is contained in:
2026-04-24 11:34:06 +08:00
parent 171d4b5d3e
commit ca96e409be
47 changed files with 558 additions and 2077 deletions

View File

@@ -1514,45 +1514,7 @@ class PropertyManager(ActiveManager):
---
## 八、Django App 结构建议
```
fonrey/
├── apps/
│ ├── tenants/ # django-tenants 配置
│ ├── org/ # 组织人事org_units, staff
│ ├── region/ # 区域管理districts, business_areas, metro
│ ├── complex/ # 楼盘管理complexes, buildings, schools
│ ├── property/ # 房源核心properties + 所有子表)
│ │ ├── models/
│ │ │ ├── property.py # Property 主表
│ │ │ ├── contact.py # PropertyContact
│ │ │ ├── follow_log.py # FollowLog
│ │ │ ├── key.py # PropertyKey
│ │ │ ├── commission.py # Commission
│ │ │ ├── survey.py # FieldSurvey
│ │ │ ├── photo.py # PropertyPhoto
│ │ │ ├── attachment.py # PropertyAttachment
│ │ │ ├── marketing.py # PropertyMarketing
│ │ │ └── completeness.py # PropertyCompleteness
│ │ ├── services/
│ │ │ ├── completeness.py # 完成度计算服务
│ │ │ ├── duplicate.py # 重复房源检测
│ │ │ └── search.py # 搜索/筛选服务
│ │ └── tasks.py # Celery 异步任务
│ ├── client/ # 客源管理
│ ├── settings/ # 系统设置lookup, tags
│ └── permissions/ # 权限管理
├── shared/ # 公共 Schema Appdjango-tenants shared_apps
└── core/
├── models/base.py # 抽象基类
├── encryption.py # 手机号加密
└── cache.py # Redis 缓存工具
```
---
## 九、必须在开发启动前明确的数据架构决策
## 八、必须在开发启动前明确的数据架构决策
| 决策项 | 推荐方案 | 风险 |
|-------|---------|------|