recordWearing static method
记录穿着
Implementation
static Future<void> recordWearing(String itemId) async {
final items = await getAllClothingItems();
final index = items.indexWhere((i) => i.id == itemId);
if (index != -1) {
final updatedItem = items[index].copyWith(
wearCount: items[index].wearCount + 1,
lastWornDate: DateTime.now(),
);
await updateClothingItem(updatedItem);
}
}