package library.dto;

/**
 * The body of POST /loans (check out a book): 
 * <pre>
 * { 
 *   "bookId": 3, 
 *   "memberId": 1 
 * }
 * </pre>
 *
 * memberId is in the body only because this demo has no login. In the full
 * application the borrower is the logged-in member, taken from the session,
 * never from the request.
 */
public record NewLoan(Integer bookId, Integer memberId) {
}
