fix: 按契约显示统一创作表头

This commit is contained in:
2026-06-06 23:51:53 +08:00
parent 18908609fc
commit d0be3f36aa
7 changed files with 21 additions and 147 deletions

View File

@@ -12,7 +12,7 @@ use crate::format_utc_micros;
use shared_contracts::creation_entry_config::{
CreationEntryConfigResponse, CreationEntryEventBannerResponse, CreationEntryStartCardResponse,
CreationEntryTypeModalResponse, CreationEntryTypeResponse,
encode_unified_creation_spec_response, resolve_unified_creation_spec_response_with_entry_title,
encode_unified_creation_spec_response, resolve_unified_creation_spec_response,
};
/// 将创作入口领域快照转换为前后台共享的 HTTP 契约响应。
@@ -45,9 +45,8 @@ pub fn build_creation_entry_config_response(
.creation_types
.into_iter()
.map(|item| {
let unified_creation_spec = resolve_unified_creation_spec_response_with_entry_title(
let unified_creation_spec = resolve_unified_creation_spec_response(
item.id.as_str(),
item.title.as_str(),
item.unified_creation_spec_json.as_deref(),
);
CreationEntryTypeResponse {