package com.example.volunteer.service;

/**
 * ============================================================================
 * 聚合结果投影 — 样卷 Q4(b)
 * ============================================================================
 *
 * EN — A small record instead of Object[]: the API layer stays readable and the row
 *      conversion happens inside the transaction (no lazy-loading surprises).
 * 中 — 用 record 代替 Object[]：API 层可读，且行转换在事务内完成（不会触发惰性加载问题）。
 *
 * @param volunteerId 志愿者 id
 * @param name        姓名
 * @param totalHours  累计服务时数
 */
public record VolunteerHours(Long volunteerId, String name, long totalHours) { }
