class ImageCategory {
  final String name;
  final String folder;
  final List<String> images;

  ImageCategory({
    required this.name,
    required this.folder,
    required this.images,
  });

  // 获取第一张图片作为缩略图
  String getThumbnailPath() {
    if (images.isNotEmpty) {
      return 'assets/images/$folder/${images.first}';
    }
    return 'assets/images/$folder/placeholder.png';
  }

  // 获取图片的完整路径
  String getImagePath(String imageName) {
    return 'assets/images/$folder/$imageName';
  }
}
