[R9] DTO containing User login information
This commit is contained in:
parent
b73d2ceceb
commit
f00c38e102
@ -0,0 +1,19 @@
|
||||
package com.mirna.hospitalmanagementapi.domain.dtos.auth;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
* Data transfer object used to store the user information requested to perform the login
|
||||
* @author Mirna Gama
|
||||
* @version 1.0
|
||||
*/
|
||||
public record UserLoginDTO(
|
||||
@NotBlank(message="login cannot be blank")
|
||||
@Column(name="login")
|
||||
String login,
|
||||
|
||||
@NotBlank(message="password cannot be blank")
|
||||
@Column(name="password")
|
||||
String password) {
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user