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; +}