-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0115c38
commit 0c162ac
Showing
8 changed files
with
92 additions
and
10 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
src/main/java/aromanticcat/umcproject/controller/AddressBookController.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 aromanticcat.umcproject.controller; | ||
|
||
|
||
import aromanticcat.umcproject.apiPayload.ApiResponse; | ||
import aromanticcat.umcproject.service.AdressBookService.AddressBookQueryService; | ||
import io.swagger.annotations.ApiOperation; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
@RequestMapping("/address-book") | ||
@RequiredArgsConstructor | ||
public class AddressBookController { | ||
|
||
private final AddressBookQueryService addressBookQueryService; | ||
|
||
// @GetMapping("/") | ||
// @ApiOperation("주소록 조회") | ||
// public ApiResponse<> | ||
|
||
|
||
} |
5 changes: 5 additions & 0 deletions
5
src/main/java/aromanticcat/umcproject/dto/AddressBook/AddressBookRequestDTO.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,5 @@ | ||
package aromanticcat.umcproject.dto.AddressBook; | ||
|
||
|
||
public class AddressBookRequestDTO { | ||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/aromanticcat/umcproject/dto/AddressBook/AddressBookRespondDTO.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,26 @@ | ||
package aromanticcat.umcproject.dto.AddressBook; | ||
|
||
import lombok.Getter; | ||
|
||
public class AddressBookRespondDTO { | ||
|
||
@Getter | ||
public static class friendListDTO{ | ||
|
||
// List<friendDTO> friends; | ||
|
||
} | ||
|
||
@Getter | ||
public static class friendDTO{ | ||
|
||
Long friend_id; | ||
|
||
String friend_name; | ||
|
||
boolean are_we_friend; | ||
|
||
boolean are_we_close; | ||
|
||
} | ||
} |
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 |
---|---|---|
@@ -1,29 +1,34 @@ | ||
package aromanticcat.umcproject.entity; | ||
|
||
import javax.persistence.Entity; | ||
import javax.persistence.FetchType; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.GenerationType; | ||
import javax.persistence.Id; | ||
import javax.persistence.JoinColumn; | ||
import javax.persistence.ManyToOne; | ||
import lombok.Getter; | ||
import javax.persistence.*; | ||
|
||
import lombok.*; | ||
|
||
@Entity | ||
@Getter | ||
@Builder | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@AllArgsConstructor | ||
public class Friend extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "friend_id") | ||
private Long id; | ||
|
||
private String friend_name; | ||
|
||
@JoinColumn(name = "to_user_id") | ||
@ManyToOne(fetch = FetchType.LAZY) | ||
private Member member; | ||
|
||
private Long to_user_id; | ||
|
||
private Long from_user_id; | ||
|
||
private boolean are_we_friend; | ||
private boolean are_we_friend; // 친구인지 여부 | ||
|
||
private boolean are_we_close; // 친한 친구인지 여부 | ||
|
||
private int times; | ||
private int exchange_num; | ||
} |
4 changes: 4 additions & 0 deletions
4
...ain/java/aromanticcat/umcproject/service/AdressBookService/AddressBookCommandService.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,4 @@ | ||
package aromanticcat.umcproject.service.AdressBookService; | ||
|
||
public interface AddressBookCommandService { | ||
} |
7 changes: 7 additions & 0 deletions
7
...java/aromanticcat/umcproject/service/AdressBookService/AddressBookCommandServiceImpl.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,7 @@ | ||
package aromanticcat.umcproject.service.AdressBookService; | ||
|
||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class AddressBookCommandServiceImpl implements AddressBookCommandService{ | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/aromanticcat/umcproject/service/AdressBookService/AddressBookQueryService.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,4 @@ | ||
package aromanticcat.umcproject.service.AdressBookService; | ||
|
||
public interface AddressBookQueryService { | ||
} |
7 changes: 7 additions & 0 deletions
7
...n/java/aromanticcat/umcproject/service/AdressBookService/AddressBookQueryServiceImpl.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,7 @@ | ||
package aromanticcat.umcproject.service.AdressBookService; | ||
|
||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class AddressBookQueryServiceImpl implements AddressBookQueryService{ | ||
} |