init: 毛孩子计划 小程序 + Go 后端 + 内嵌后台
- pets-fe: 微信原生小程序(首页/计划/记录/报告/社区/引导), 服务端驱动、无假数据;弹层改用 scroll-view,打开时隐藏自定义 tabBar - pets-be: Gin + GORM(MySQL, sundynix_ 前缀) + MinIO,统一响应/分页, 微信 code2session 登录,provider-neutral AI(DeepSeek),go:embed React 后台 - 修复:分段选择类型不匹配(字符串 vs 数字)导致选不中 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
server:
|
||||
port: 8080
|
||||
mode: debug # debug | release
|
||||
|
||||
mysql:
|
||||
host: 127.0.0.1
|
||||
port: 3306
|
||||
user: root
|
||||
password: root
|
||||
database: pets
|
||||
charset: utf8mb4
|
||||
|
||||
minio:
|
||||
endpoint: 127.0.0.1:9000
|
||||
access_key: sundynix
|
||||
secret_key: sundynix
|
||||
bucket: pets
|
||||
use_ssl: false
|
||||
public_base_url: http://127.0.0.1:9000 # 拼接可访问的对象 URL
|
||||
|
||||
jwt:
|
||||
secret: change-me-to-a-long-random-string # 生产用 PETS_JWT_SECRET 覆盖
|
||||
|
||||
wechat:
|
||||
app_id: your-wechat-app-id
|
||||
app_secret: your-wechat-app-secret # 敏感凭证:生产用 PETS_WECHAT_APP_SECRET 环境变量覆盖
|
||||
|
||||
auth:
|
||||
dev_login: true # 仍保留 Mock 登录便于本地 curl 调试;上线可置 false 只留微信登录
|
||||
|
||||
admin:
|
||||
username: sundynix
|
||||
password: change-me # 启动时若无同名管理员则 seed 此账号
|
||||
|
||||
ai:
|
||||
enabled: false # false 时全部走规则化文案(不烧 token);接大模型改 true
|
||||
provider: openai # openai 兼容协议,适配 DeepSeek/Qwen(兼容模式)/Gemini(兼容端点)等
|
||||
base_url: https://api.deepseek.com # 换供应商只改这里 + model
|
||||
api_key: your-ai-api-key # 敏感:生产用 PETS_AI_API_KEY 环境变量覆盖
|
||||
model: deepseek-chat
|
||||
temperature: 0.6
|
||||
max_tokens: 1024
|
||||
timeout_sec: 30
|
||||
Reference in New Issue
Block a user