feat: rebuild pet app and backend around core care flows

This commit is contained in:
2026-10-01 13:11:30 +08:00
parent 51ead8f411
commit bfcf8788a4
321 changed files with 4918 additions and 25199 deletions
+15 -25
View File
@@ -1,43 +1,33 @@
server:
port: 9090
mode: debug # debug | release
mode: release
mysql:
host: 127.0.0.1
port: 3306
postgres:
host: 192.168.100.127
port: 5432
user: root
password: root
database: pets
charset: utf8mb4
database: sundynix-pets
ssl_mode: disable
minio:
endpoint: 127.0.0.1:9000
endpoint: https://s3.sundynix.cn
access_key: sundynix
secret_key: sundynix
bucket: pets
use_ssl: false
public_base_url: http://127.0.0.1:9000 # 拼接可访问的对象 URL
bucket: sundynix-pet
use_ssl: true
jwt:
secret: change-me-to-a-long-random-string # 生产用 PETS_JWT_SECRET 覆盖
secret: "" # 用 PETS_JWT_SECRET 注入
expire_hours: 168
wechat:
app_id: your-wechat-app-id
app_secret: your-wechat-app-secret # 敏感凭证:生产用 PETS_WECHAT_APP_SECRET 环境变量覆盖
app_id: ""
app_secret: ""
auth:
dev_login: true # 仍保留 Mock 登录便于本地 curl 调试;上线可置 false 只留微信登录
dev_login: 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
password: sundynix
+32
View File
@@ -0,0 +1,32 @@
server:
port: 9090
mode: debug # debug | release
postgres:
host: 192.168.100.127
port: 5432
user: root
password: root
database: sundynix-pets
ssl_mode: disable
minio:
endpoint: https://s3.sundynix.cn
access_key: sundynix
secret_key: sundynix
bucket: sundynix-pet
use_ssl: true
jwt:
secret: kFdKDNCXpyJO2W+htdxobhHNzUIYuwcaZV94aJbIGHQ= # 生产用 PETS_JWT_SECRET 覆盖
wechat:
app_id: wx52dfc635739a9c19
app_secret: b3c78abf7bcdd5b4e3c444f9e6caad3f # 敏感凭证:生产用 PETS_WECHAT_APP_SECRET 环境变量覆盖
auth:
dev_login: true # 仍保留 Mock 登录便于本地 curl 调试;上线可置 false 只留微信登录
admin:
username: sundynix
password: sundynix