-
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.
Merge pull request #12 from Hey-Porori/setting
feat: 사용자위치정보 CRUD
- Loading branch information
Showing
40 changed files
with
628 additions
and
377 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,4 @@ out/ | |
### VS Code ### | ||
.vscode/ | ||
application.yml | ||
.DS_store |
121 changes: 0 additions & 121 deletions
121
src/main/java/porori/backend/user/domain/user/application/dto/req/UserRequestDto.java
This file was deleted.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
...ain/java/porori/backend/user/domain/user/application/dto/request/AdditionInfoRequest.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,42 @@ | ||
package porori.backend.user.domain.user.application.dto.request; | ||
|
||
import io.swagger.annotations.ApiModel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.NotNull; | ||
|
||
@Getter | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@ApiModel(description = "추가 정보 입력을 위한 요청 객체") | ||
public class AdditionInfoRequest { | ||
@NotBlank(message = "자체 액세스 토큰을 입력해주세요.") | ||
private String accessToken; | ||
|
||
@NotBlank(message = "본명을 입력해주세요.") | ||
private String name; | ||
|
||
@NotBlank(message = "닉네임을 입력해주세요.") | ||
private String nickName; | ||
|
||
@NotBlank(message = "전화번호를 입력해주세요.") | ||
private String phoneNumber; | ||
|
||
@NotNull(message = "성별을 입력해주세요.") | ||
private Boolean gender; | ||
|
||
@NotBlank(message="프로필 사진 URl입력해주세요.") | ||
private String imageUrl; | ||
|
||
@NotBlank(message="이메일을 입력해주세요.") | ||
private String email; | ||
|
||
@NotBlank(message = "주소를 입력해주세요.") | ||
private String address; | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
.../porori/backend/user/domain/user/application/dto/request/GetCommunityUserInfoRequest.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,16 @@ | ||
package porori.backend.user.domain.user.application.dto.request; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
@Builder | ||
@NoArgsConstructor | ||
public class GetCommunityUserInfoRequest{ | ||
private List<Long> userIdList; | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/porori/backend/user/domain/user/application/dto/request/LoginRequest.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,22 @@ | ||
package porori.backend.user.domain.user.application.dto.request; | ||
|
||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
@Builder | ||
@ApiModel(description = "애플 로그인을 위한 요청 객체") | ||
@NoArgsConstructor | ||
public class LoginRequest { | ||
@NotBlank(message = "애플 identity token을 입력해주세요.") | ||
@ApiModelProperty(notes = "카카오 identity token을 주세요.") | ||
private String token; | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/porori/backend/user/domain/user/application/dto/request/TestLoginRequest.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,16 @@ | ||
package porori.backend.user.domain.user.application.dto.request; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
@Builder | ||
@NoArgsConstructor | ||
public class TestLoginRequest { | ||
|
||
private String appleId; | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/porori/backend/user/domain/user/application/dto/request/TestSignUpRequest.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,24 @@ | ||
package porori.backend.user.domain.user.application.dto.request; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
@Builder | ||
@NoArgsConstructor | ||
public class TestSignUpRequest { | ||
|
||
private String name; | ||
private String phoneNumber; | ||
private String appleID; | ||
private String nickName; | ||
private Boolean gender; | ||
private String imageUrl; | ||
private String email; | ||
private String address; | ||
|
||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...ain/java/porori/backend/user/domain/user/application/dto/request/UserLocationRequest.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,24 @@ | ||
package porori.backend.user.domain.user.application.dto.request; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.NotNull; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
@Builder | ||
@NoArgsConstructor | ||
public class UserLocationRequest { | ||
@NotBlank(message = "이름을 입력해주세요.") | ||
private String name; | ||
|
||
@NotNull(message = "경도를 입력해주세요.") | ||
private Double longitude; | ||
|
||
@NotNull(message = "위도를 입력해주세요.") | ||
private Double latitude; | ||
} |
95 changes: 0 additions & 95 deletions
95
src/main/java/porori/backend/user/domain/user/application/dto/res/UserResponseDto.java
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
...ava/porori/backend/user/domain/user/application/dto/response/CommunityUserInfoBlocks.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,20 @@ | ||
package porori.backend.user.domain.user.application.dto.response; | ||
|
||
import com.querydsl.core.annotations.QueryProjection; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class CommunityUserInfoBlocks { | ||
private Long userId; | ||
private String image; | ||
private String backgroundColor; | ||
private String nickname; | ||
|
||
@QueryProjection | ||
public CommunityUserInfoBlocks(Long userId, String image, String backgroundColor, String nickname) { | ||
this.userId = userId; | ||
this.image = image; | ||
this.backgroundColor = backgroundColor; | ||
this.nickname = nickname; | ||
} | ||
} |
Oops, something went wrong.