[R3] DTO to update allowed data in Doctor Entity

This commit is contained in:
Mirna Gama 2024-01-05 12:29:46 -03:00 committed by Mirna Gama
parent aa674d64c3
commit a571881aab

View File

@ -0,0 +1,18 @@
package com.mirna.hospitalmanagementapi.domain.dtos;
import jakarta.validation.constraints.NotNull;
/**
* Data transfer object used to update allowed data in a Doctor entity
*
* @author Mirna Gama
* @version 1.0
*/
public record DoctorUpdatedDataDTO(
@NotNull(message="id cannot be null")
Long id,
String name,
String telephone,
AddressDTO address) {
}