From 60f24f78a66baa3c55bd9088443c00fdcb3f23c0 Mon Sep 17 00:00:00 2001 From: ddangelorb Date: Fri, 13 Aug 2021 16:05:51 -0300 Subject: [PATCH] Adding DTO classes --- .../wpdauth/dto/UsersRequestDTO.java | 14 +++++++++++++ .../wpdauth/dto/UsersResponseDTO.java | 20 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 src/main/java/org/waterproofingdata/wpdauth/dto/UsersRequestDTO.java create mode 100644 src/main/java/org/waterproofingdata/wpdauth/dto/UsersResponseDTO.java diff --git a/src/main/java/org/waterproofingdata/wpdauth/dto/UsersRequestDTO.java b/src/main/java/org/waterproofingdata/wpdauth/dto/UsersRequestDTO.java new file mode 100644 index 0000000..bae6cfe --- /dev/null +++ b/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; +} diff --git a/src/main/java/org/waterproofingdata/wpdauth/dto/UsersResponseDTO.java b/src/main/java/org/waterproofingdata/wpdauth/dto/UsersResponseDTO.java new file mode 100644 index 0000000..a580822 --- /dev/null +++ b/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; +}