package com.example.volunteer.repository;

import com.example.volunteer.model.Volunteer;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * ============================================================================
 * (e) Repository — VolunteerRepository（给 REST 接口用）
 * ============================================================================
 *
 * 【为什么需要 / Why it is needed】
 * EN — In question (e) the API must check that the volunteer exists before creating a
 *      sign-up, so a VolunteerRepository is required even though the web page never uses it.
 * 中 — 第 (e) 问在创建报名前要校验志愿者是否存在，因此需要 VolunteerRepository；
 *      页面本身用不到它。
 *
 * 【题目 / Question (e)】
 * EN — A REST API allows a volunteer to sign up: POST <base_url>/api/events/{eventId}/signup,
 *      body contains volunteerId and hours. (5 marks)
 * 中 — REST 接口：POST /api/events/{eventId}/signup，请求体含 volunteerId 与 hours。（5 分）
 */
public interface VolunteerRepository extends JpaRepository<Volunteer, Long> {
}
