落地 synastry/star/ask API 与 H5 页面,补齐 cece-frontend-re complete-design 证据文档,并加入 Android 模拟器截图抓取脚本。 Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
574 B
Markdown
18 lines
574 B
Markdown
# 愈心谷 API
|
||
|
||
Go + Gin + Postgres。本命/合盘星历依赖 **Swiss Ephemeris**(`github.com/tejzpr/go-swisseph`,**AGPL-3.0**)。
|
||
|
||
## 构建要求
|
||
|
||
- Go 1.22+
|
||
- **CGO_ENABLED=1** 与 C 编译器(clang/gcc)
|
||
- 默认使用 **Moshier** 星历(无需外挂 ephe 文件)
|
||
- 可选:设置 `SE_EPHE_PATH` / `EPHEMERIS_PATH` 指向 Swiss Ephemeris 数据目录以启用更高精度(`FlagSwieph`)
|
||
|
||
```bash
|
||
CGO_ENABLED=1 go test ./...
|
||
CGO_ENABLED=1 go run ./cmd/server
|
||
```
|
||
|
||
商业部署须遵守 Swiss Ephemeris 许可(AGPL 或 Astrodienst 专业授权)。
|