diff --git a/app/main/api/internal/service/toolboxService.go b/app/main/api/internal/service/toolboxService.go index 37d8091..a104138 100644 --- a/app/main/api/internal/service/toolboxService.go +++ b/app/main/api/internal/service/toolboxService.go @@ -3169,7 +3169,16 @@ func (s *ToolboxService) processJieQi( } } - // 6. 公历 / 农历字段可读化(可选) + // 6. 字段映射与公历/农历字段可读化 + // 将 name 映射为 word(前端期望) + if name, ok := clean["name"].(string); ok { + clean["word"] = name + } + // 将 jieshao 映射为 content(前端期望) + if desc, ok := clean["jieshao"].(string); ok { + clean["content"] = desc + } + // 公历 / 农历字段可读化 if date, ok := clean["date"].(map[string]interface{}); ok { clean["greg_date"] = date["gregdate"] clean["lunar_date"] = date["lunardate"]