feat: update smoke profile area handling
This commit is contained in:
@@ -391,6 +391,7 @@ curl -X GET 'http://127.0.0.1:8080/api/v1/smoke/logs/5202' \
|
||||
"pack_price_cent": 2500,
|
||||
"smoke_motivations": ["压力大", "社交"],
|
||||
"quit_motivations": ["身体健康", "省钱"],
|
||||
"mode": "record",
|
||||
"wake_up_time": "07:30",
|
||||
"sleep_time": "23:30",
|
||||
"quit_date": "2026-02-28T00:00:00+08:00",
|
||||
@@ -423,6 +424,7 @@ curl -X GET 'http://127.0.0.1:8080/api/v1/smoke/logs/5202' \
|
||||
- `smoking_years`(烟龄/年)+ `pack_price_cent`(单包价格/分):用于看板计算“已省金额”和“恢复时长”等指标(公式可在看板端实现)。
|
||||
- `smoke_motivations`(抽烟动机):如 `压力大/无聊/社交/提神`,用于 AI 在分析 remark 时更有针对性。
|
||||
- `quit_motivations`(戒烟动力):如 `身体健康/家人孩子/省钱`,当用户产生动摇时 AI 可用这些信息做“情感阻断/自我提醒”。
|
||||
- `mode`(使用模式):`quit` 表示戒烟打卡模式,`record` 表示记录抽烟模式。
|
||||
- `wake_up_time` + `sleep_time`(作息时间):用于自动规避睡眠时间,防止在用户睡觉时提醒其“坚持”。
|
||||
- `quit_date`(目标戒烟日期):用于阶段规划或到期提醒。
|
||||
|
||||
@@ -444,6 +446,7 @@ curl -X GET 'http://127.0.0.1:8080/api/v1/smoke/logs/5202' \
|
||||
"pack_price_cent": 2500,
|
||||
"smoke_motivations": ["压力大", "社交"],
|
||||
"quit_motivations": ["身体健康", "省钱"],
|
||||
"mode": "record",
|
||||
"wake_up_time": "07:30",
|
||||
"sleep_time": "23:30",
|
||||
"quit_date": "2026-02-28"
|
||||
|
||||
Reference in New Issue
Block a user