You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
587 B
Java
31 lines
587 B
Java
package com.yau.digitalrmb.security.interfaces;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonAlias;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.Getter;
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.Setter;
|
|
|
|
import javax.validation.constraints.NotBlank;
|
|
|
|
@Getter
|
|
@Setter
|
|
@NoArgsConstructor
|
|
@AllArgsConstructor
|
|
public class LoginRequest {
|
|
@NotBlank
|
|
@JsonAlias("username")
|
|
private String studentId;
|
|
|
|
@NotBlank
|
|
private String password;
|
|
|
|
public String studentId() {
|
|
return studentId;
|
|
}
|
|
|
|
public String password() {
|
|
return password;
|
|
}
|
|
}
|