-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Feat/#73/스페이스 별 유저 프로필 관련 api 개발
- Loading branch information
Showing
9 changed files
with
314 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/main/java/space/space_spring/dto/space/PostSpaceJoinDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package space.space_spring.dto.space; | ||
|
||
import jakarta.annotation.Nullable; | ||
import jakarta.validation.constraints.NotBlank; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import org.hibernate.validator.constraints.Length; | ||
import org.springframework.web.multipart.MultipartFile; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class PostSpaceJoinDto { | ||
|
||
private String userProfileImg; | ||
|
||
private String userName; | ||
|
||
private String userProfileMsg; | ||
|
||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public static class Request { | ||
|
||
@Nullable | ||
private MultipartFile userProfileImg; | ||
|
||
@NotBlank(message = "유저 이름은 공백일 수 없습니다.") | ||
@Length(min = 1, max = 10, message = "이름은 10자이내의 문자열이어야 합니다.") | ||
private String userName; | ||
|
||
@Nullable | ||
@Length(max = 50, message = "프로필 상태메시지는 50자이내의 문자열이어야 합니다.") | ||
private String userProfileMsg; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/space/space_spring/dto/userSpace/GetUserProfileInSpaceDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package space.space_spring.dto.userSpace; | ||
|
||
import com.amazonaws.services.ec2.model.CpuOptionsRequest; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class GetUserProfileInSpaceDto { | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public static class Response { | ||
|
||
private String userProfileImg; | ||
|
||
private String userName; | ||
|
||
private String userAuth; | ||
|
||
private String userProfileMsg; | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
src/main/java/space/space_spring/dto/userSpace/PutUserProfileInSpaceDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package space.space_spring.dto.userSpace; | ||
|
||
import jakarta.annotation.Nullable; | ||
import jakarta.validation.constraints.NotBlank; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import org.hibernate.validator.constraints.Length; | ||
import org.springframework.web.multipart.MultipartFile; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class PutUserProfileInSpaceDto { | ||
|
||
private String userName; | ||
|
||
private String userProfileImg; | ||
|
||
private String userProfileMsg; | ||
|
||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public static class Request { | ||
|
||
@Nullable | ||
private MultipartFile userProfileImg; | ||
|
||
@NotBlank(message = "유저 이름은 공백일 수 없습니다.") | ||
@Length(min = 1, max = 10, message = "이름은 10자이내의 문자열이어야 합니다.") | ||
private String userName; | ||
|
||
@Nullable | ||
@Length(max = 50, message = "프로필 상태메시지는 50자이내의 문자열이어야 합니다.") | ||
private String userProfileMsg; | ||
} | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public static class Response { | ||
|
||
private String userProfileImg; | ||
|
||
private String userAuth; | ||
|
||
private String userName; | ||
|
||
private String userProfileMsg; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.