-
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.
서비스는 1도 작성 안함. 농사 - localdatetime 타입 공부 필요 자세히 보기 - 게시글 모음 구현 힘들것같아서 미룸
- Loading branch information
1 parent
a5a2229
commit 0508dea
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
32 changes: 30 additions & 2 deletions
32
src/main/java/com/kimgreen/backend/domain/profile/controller/calendarController.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 |
---|---|---|
@@ -1,12 +1,40 @@ | ||
package com.kimgreen.backend.domain.profile.controller; | ||
|
||
import com.kimgreen.backend.domain.member.dto.Auth.SignUpRequestDto; | ||
import com.kimgreen.backend.domain.profile.service.CalendarService; | ||
import com.kimgreen.backend.response.Response; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import lombok.AllArgsConstructor; | ||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
import org.springframework.web.bind.annotation.*; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
import static com.kimgreen.backend.response.Message.*; | ||
import static com.kimgreen.backend.response.Response.success; | ||
import static org.springframework.http.HttpStatus.OK; | ||
|
||
@Tag(name = "Calendar") | ||
@RestController | ||
@RequestMapping(value="/calendar") | ||
@AllArgsConstructor | ||
public class calendarController { | ||
|
||
private final CalendarService calendarService; | ||
@Operation(summary = "프로필 달력 불러오기 (농사 잘했는지 불러오는거)") | ||
@ResponseStatus(OK) | ||
@GetMapping("/calender") | ||
public Response getCalender(@RequestParam("memberId") Long memberId, @RequestParam("date")LocalDateTime localDateTime) { | ||
|
||
return success(CALENDAR_SUCCESS); | ||
} | ||
|
||
@Operation(summary = "프로필 달력 상세정보 불러오기 (글들 불러오는거임)") | ||
@ResponseStatus(OK) | ||
@GetMapping("/calender-details") | ||
public Response getCalenderDetails(@RequestBody SignUpRequestDto signUpRequestDto) { | ||
|
||
return success(CALENDAR_DETAILS_SUCCESS); | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
src/main/java/com/kimgreen/backend/domain/profile/service/CalendarService.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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
package com.kimgreen.backend.domain.profile.service; | ||
|
||
import lombok.AllArgsConstructor; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
@AllArgsConstructor | ||
public class CalendarService { | ||
} |
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