UserPreferenceService class

用户偏好反馈服务 - AI动态学习系统

Constructors

UserPreferenceService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

clearAllPreferences() Future<void>
清空所有偏好数据
generateAILearningPrompt() Future<String>
生成AI学习提示词
getDislikes() Future<List<Map<String, dynamic>>>
获取不喜欢的记录
getFeedbackHistory() Future<List<Map<String, dynamic>>>
获取反馈历史
saveDislikes({required String itemType, required List<String> reasons, String? itemDescription}) Future<void>
保存短期反馈(不喜欢)
saveFeedback({required String recommendationId, required String feeling, String? comment}) Future<void>
保存长期反馈
updateColorPreference(String color, bool liked) Future<void>
更新颜色偏好
updatePricePreference(String priceRange, bool liked) Future<void>
更新价格偏好
updateStylePreference(String style, bool liked) Future<void>
更新风格偏好