From 5667435b56b564fd8792dadf5582f45267b7e5d2 Mon Sep 17 00:00:00 2001 From: Developer Date: Sun, 19 Apr 2026 04:27:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=845?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/controllers/data/browse_history_controller.dart | 4 ++-- lib/src/controllers/data/cooking_note_controller.dart | 6 +++--- lib/src/controllers/data/share_record_controller.dart | 4 ++-- lib/src/controllers/user/email_history_controller.dart | 4 ++-- lib/src/pages/home/advanced_search_page.dart | 4 ++-- lib/src/pages/home/search_page.dart | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/src/controllers/data/browse_history_controller.dart b/lib/src/controllers/data/browse_history_controller.dart index 6603a69..e0fa26d 100644 --- a/lib/src/controllers/data/browse_history_controller.dart +++ b/lib/src/controllers/data/browse_history_controller.dart @@ -1,9 +1,9 @@ -// 2026-04-12 | BrowseHistoryController | 浏览记录控制器 | 管理用户浏览菜谱历史 +// 2026-04-12 | BrowseHistoryController | 浏览记录控制器 | 管理用户浏览菜谱历史 import 'package:flutter/foundation.dart'; import 'package:get/get.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'dart:convert'; -import '../../models/data/browse_history_model.dart'; +import '../../models/data/record/browse_history_model.dart'; class BrowseHistoryController extends GetxController { static BrowseHistoryController get to => Get.find(); diff --git a/lib/src/controllers/data/cooking_note_controller.dart b/lib/src/controllers/data/cooking_note_controller.dart index 6ebb8e7..365b78e 100644 --- a/lib/src/controllers/data/cooking_note_controller.dart +++ b/lib/src/controllers/data/cooking_note_controller.dart @@ -1,4 +1,4 @@ -// 烹饪笔记控制器 +// 烹饪笔记控制器 // 创建时间: 2026-04-09 // 更新时间: 2026-04-12 // 名称: cooking_note_controller.dart @@ -9,8 +9,8 @@ import 'package:flutter/foundation.dart'; import 'package:get/get.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'dart:convert'; -import '../../models/data/cooking_note_model.dart'; -import '../../services/data/hive_service.dart'; +import '../../models/data/record/cooking_note_model.dart'; +import '../../services/data/storage/hive_service.dart'; class CookingNoteController extends GetxController { static CookingNoteController get to => Get.find(); diff --git a/lib/src/controllers/data/share_record_controller.dart b/lib/src/controllers/data/share_record_controller.dart index 614a5db..a6ecc3b 100644 --- a/lib/src/controllers/data/share_record_controller.dart +++ b/lib/src/controllers/data/share_record_controller.dart @@ -1,11 +1,11 @@ -// 2026-04-19 | share_record_controller.dart | 分享记录控制器 | 管理菜谱分享历史 +// 2026-04-19 | share_record_controller.dart | 分享记录控制器 | 管理菜谱分享历史 // 2026-04-19 | 初始创建,使用 SharedPreferences JSON 持久化 import 'package:flutter/foundation.dart'; import 'package:get/get.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'dart:convert'; -import '../../models/data/share_record_model.dart'; +import '../../models/data/record/share_record_model.dart'; class ShareRecordController extends GetxController { static ShareRecordController get to => Get.find(); diff --git a/lib/src/controllers/user/email_history_controller.dart b/lib/src/controllers/user/email_history_controller.dart index 128d150..5a2b49c 100644 --- a/lib/src/controllers/user/email_history_controller.dart +++ b/lib/src/controllers/user/email_history_controller.dart @@ -1,11 +1,11 @@ -// 2026-04-15 | email_history_controller.dart | 邮件记录控制器 | 管理邮件发送历史 +// 2026-04-15 | email_history_controller.dart | 邮件记录控制器 | 管理邮件发送历史 // 2026-04-15 | 初始创建,使用 SharedPreferences JSON 持久化 import 'package:flutter/foundation.dart'; import 'package:get/get.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'dart:convert'; -import '../../models/data/email_record_model.dart'; +import '../../models/data/record/email_record_model.dart'; class EmailHistoryController extends GetxController { static EmailHistoryController get to => Get.find(); diff --git a/lib/src/pages/home/advanced_search_page.dart b/lib/src/pages/home/advanced_search_page.dart index c470280..1336798 100644 --- a/lib/src/pages/home/advanced_search_page.dart +++ b/lib/src/pages/home/advanced_search_page.dart @@ -1,4 +1,4 @@ -/* +/* * 文件: advanced_search_page.dart * 名称: 高级搜索页面 * 作用: 多条件筛选搜索菜谱(分类/口味/工艺/时段/排除/食材/营养范围) @@ -9,7 +9,7 @@ import 'package:flutter/cupertino.dart'; import 'package:get/get.dart'; -import '../../controllers/recipe/search_controller.dart' as app_search; +import '../../controllers/browse/search_controller.dart' as app_search; import '../../config/design_tokens.dart'; import '../../models/recipe/category_model.dart'; import '../../models/recipe/tag_model.dart'; diff --git a/lib/src/pages/home/search_page.dart b/lib/src/pages/home/search_page.dart index d780afe..83723be 100644 --- a/lib/src/pages/home/search_page.dart +++ b/lib/src/pages/home/search_page.dart @@ -1,4 +1,4 @@ -/* +/* * 文件: search_page.dart * 名称: 搜索页面 * 作用: iOS 26 风格的菜谱搜索页面,支持多维度搜索+高级筛选 @@ -8,7 +8,7 @@ import 'package:flutter/cupertino.dart'; import 'package:get/get.dart'; -import '../../controllers/recipe/search_controller.dart'; +import '../../controllers/browse/search_controller.dart'; import '../../config/app_routes.dart'; import '../../config/design_tokens.dart'; import '../../models/recipe/recipe_model.dart';