Skip to content

Commit

Permalink
feat: first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoon-Jemin committed Jan 20, 2024
1 parent 0115c38 commit 0c162ac
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 10 deletions.
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<>


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package aromanticcat.umcproject.dto.AddressBook;


public class AddressBookRequestDTO {
}
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;

}
}
25 changes: 15 additions & 10 deletions src/main/java/aromanticcat/umcproject/entity/Friend.java
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;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package aromanticcat.umcproject.service.AdressBookService;

public interface AddressBookCommandService {
}
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{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package aromanticcat.umcproject.service.AdressBookService;

public interface AddressBookQueryService {
}
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{
}

0 comments on commit 0c162ac

Please sign in to comment.