Browse Source

Adding DTO classes

main
ddangelorb 4 years ago
parent
commit
60f24f78a6
  1. 14
      src/main/java/org/waterproofingdata/wpdauth/dto/UsersRequestDTO.java
  2. 20
      src/main/java/org/waterproofingdata/wpdauth/dto/UsersResponseDTO.java

14
src/main/java/org/waterproofingdata/wpdauth/dto/UsersRequestDTO.java

@ -0,0 +1,14 @@
package org.waterproofingdata.wpdauth.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class UsersRequestDTO {
@ApiModelProperty(position = 0)
private String username;
@ApiModelProperty(position = 1)
private String password;
}

20
src/main/java/org/waterproofingdata/wpdauth/dto/UsersResponseDTO.java

@ -0,0 +1,20 @@
package org.waterproofingdata.wpdauth.dto;
import java.util.List;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.waterproofingdata.wpdauth.model.Roles;
@Getter
@Setter
public class UsersResponseDTO {
@ApiModelProperty(position = 0)
private Integer id;
@ApiModelProperty(position = 1)
private String username;
@ApiModelProperty(position = 2)
List<Roles> roles;
}
Loading…
Cancel
Save