Last change
on this file since 33d4f5d was bd46dbb, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago |
refactoring and response dto
|
-
Property mode
set to
100644
|
File size:
386 bytes
|
Rev | Line | |
---|
[bd46dbb] | 1 | package it.finki.tinki.model.dto.response.account;
|
---|
[723994f] | 2 |
|
---|
| 3 | import it.finki.tinki.model.enumerator.AccountType;
|
---|
| 4 | import lombok.Data;
|
---|
| 5 |
|
---|
| 6 | @Data
|
---|
| 7 | public class LoginResponseDTO {
|
---|
| 8 | private Long id;
|
---|
| 9 | private String email;
|
---|
| 10 | private String name;
|
---|
| 11 | private AccountType type;
|
---|
[509cb95] | 12 | private String error;
|
---|
| 13 |
|
---|
| 14 | public LoginResponseDTO() {
|
---|
| 15 | this.error = "Invalid username or password!";
|
---|
| 16 | }
|
---|
[723994f] | 17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.