Skip to content

Commit

Permalink
Merge pull request #12 from Hey-Porori/setting
Browse files Browse the repository at this point in the history
feat: 사용자위치정보 CRUD
  • Loading branch information
minsu20 authored Aug 12, 2023
2 parents 6b97cef + a97cb28 commit 50a24eb
Show file tree
Hide file tree
Showing 40 changed files with 628 additions and 377 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ out/
### VS Code ###
.vscode/
application.yml
.DS_store

This file was deleted.

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;

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

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

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


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

This file was deleted.

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

0 comments on commit 50a24eb

Please sign in to comment.