修复: status→enum + type alias(SMELL-P1-6)
This commit is contained in:
@@ -142,6 +142,7 @@ mod idea_source_test_helpers {
|
||||
use df_storage::crud::IdeaRepo;
|
||||
use df_storage::db::Database;
|
||||
use df_storage::models::IdeaRecord;
|
||||
use df_types::types::IdeaStatus;
|
||||
|
||||
/// 建内存 DB(已跑 migrations,含 ideas 表)+ 插一条 IdeaRecord fixture,返回 db 句柄。
|
||||
///
|
||||
@@ -155,7 +156,7 @@ mod idea_source_test_helpers {
|
||||
id: id.to_string(),
|
||||
title: format!("fixture-{}", id),
|
||||
description: String::new(),
|
||||
status: "draft".to_string(),
|
||||
status: IdeaStatus::Draft,
|
||||
priority: 1,
|
||||
score: None,
|
||||
tags: None,
|
||||
|
||||
Reference in New Issue
Block a user