fix(diary): JournalResp 补充 assigned_topic_id 字段
Some checks failed
Main Merge / backend (push) Has been cancelled
Main Merge / frontend (push) Has been cancelled

- dto.rs: JournalResp 添加 assigned_topic_id: Option<Uuid>
- journal_service model_to_resp: 映射 model.assigned_topic_id
- parent_handler journal_model_to_resp: 同步映射

Flutter 端 JournalEntry 已有 assignedTopicId,无需修改
测试: 84/84 通过
This commit is contained in:
iven
2026-06-03 17:46:50 +08:00
parent 367f21de08
commit 8300822232
3 changed files with 3 additions and 0 deletions

View File

@@ -68,6 +68,7 @@ pub struct JournalResp {
pub tags: Vec<String>,
pub is_private: bool,
pub shared_to_class: bool,
pub assigned_topic_id: Option<uuid::Uuid>,
pub version: i32,
pub created_at: chrono::DateTime<chrono::Utc>,
pub updated_at: chrono::DateTime<chrono::Utc>,

View File

@@ -453,6 +453,7 @@ fn journal_model_to_resp(model: crate::entity::journal_entry::Model) -> JournalR
tags,
is_private: model.is_private,
shared_to_class: model.shared_to_class,
assigned_topic_id: model.assigned_topic_id,
version: model.version,
created_at: model.created_at,
updated_at: model.updated_at,

View File

@@ -292,6 +292,7 @@ fn model_to_resp(model: journal_entry::Model) -> JournalResp {
tags,
is_private: model.is_private,
shared_to_class: model.shared_to_class,
assigned_topic_id: model.assigned_topic_id,
version: model.version,
created_at: model.created_at,
updated_at: model.updated_at,