Files
iqudo-top1/README.md
2026-08-09 00:29:26 +08:00

47 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# iqudo-top1
场景化销售话术与 SOP 平台。
## 本地运行
```bash
mysql -uroot -p < scripts/create-databases.sql
make web-install
make build
./bin/iqudo-top1
```
默认配置位于 `configs/config.yml`,可以通过环境变量覆盖。
## Docker Compose 运行
Compose 会启动 MySQL、应用服务和 Nginx默认通过 `18090` 端口访问:
```bash
cp .env.example .env
# 修改 .env 中的数据库密码、JWT 密钥和初始管理员密码
make docker-config
make docker-up
```
查看服务日志使用 `make docker-logs`,停止服务使用 `make docker-down`。MySQL 数据保存在 `mysql-data` 命名卷中,停止服务不会删除数据。
镜像构建默认使用 `.env` 中的 `GOPROXY`。当前模板使用适合国内网络的代理;其他网络环境可以改为 `https://proxy.golang.org,direct`
## 宠物医生问诊问药示范场景
数据库迁移和管理员初始化完成后执行:
```bash
make seed-pet-doctor
```
该命令会幂等地创建或完善以下配置:
- 宠物医生问诊问药场景
- 47 个动态问诊字段,覆盖咨询背景、宠物档案、主诉、生命状态、既往史和用药详情
- 线上问诊边界、急症红旗、用药安全、观察与复诊 4 张知识卡
- 包含普通问诊、急症转诊、常规用药咨询和用药风险转诊分支的已发布 SOP
示范场景是配置数据,通用流程引擎不包含宠物行业专用判断。