Skip to content

Commit

Permalink
merge 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
hak2711 committed Jun 4, 2021
1 parent 272c49b commit 9f267cc
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion src/main/java/com/efub/clone/acmicpc/web/HomeController.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,42 @@
package com.efub.clone.acmicpc.web;

import com.efub.clone.acmicpc.service.BoardService;
import com.efub.clone.acmicpc.service.ProblemService;
import com.efub.clone.acmicpc.service.UserService;
import com.efub.clone.acmicpc.web.dto.BoardListResponseDto;
import com.efub.clone.acmicpc.web.dto.ProblemListResponseDto;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequiredArgsConstructor
@RestController
public class HomeController {
}
public final UserService userService;
public final BoardService boardService;
public final ProblemService problemService;

@GetMapping
@RequestMapping(value = "/")
public List<BoardListResponseDto> board_findAllDesc() { return boardService.findAllDesc(); }

@GetMapping
@RequestMapping(value = "/")
public List<ProblemListResponseDto> problem_findAllDesc() { return problemService.findAllDesc(); }

@GetMapping
@RequestMapping(value = "/")
public List<ProblemListResponseDto> findMultilingual() { return problemService.findMultilingualDesc(); }

@GetMapping
@RequestMapping(value = "/")
public List<ProblemListResponseDto> findAllSortByRank(){
return problemService.findAllSortByRank();
}



}

0 comments on commit 9f267cc

Please sign in to comment.