Skip to content

Commit

Permalink
calender 컨트롤러 작성
Browse files Browse the repository at this point in the history
서비스는 1도 작성 안함.
농사 - localdatetime 타입 공부 필요
자세히 보기 - 게시글 모음 구현 힘들것같아서 미룸
  • Loading branch information
epdlrnldudnj committed Jan 22, 2024
1 parent a5a2229 commit 0508dea
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
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);
}
}
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 {
}
2 changes: 2 additions & 0 deletions src/main/java/com/kimgreen/backend/response/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ public class Message {
public static String GET_NOT_COLLECTED_BADGE_INFO="미획득 뱃지 상세정보 불러오기 성공했습니다.";
public static String SUCCESS_GET_NOTIFICATION ="푸시알림 내역 보기 성공했습니다.";
public static String POST_REPORT_SUCCESS="게시글 신고하기 성공했습니다.";
public static String CALENDAR_SUCCESS="프로필 달력 불러오기 성공했습니다.";
public static String CALENDAR_DETAILS_SUCCESS="프로필 달력 상세정보 불러오기 성공했습니다.";

}

0 comments on commit 0508dea

Please sign in to comment.