Class StatisticsController

java.lang.Object
inha.git.statistics.api.controller.StatisticsController

@RestController @RequestMapping("/api/v1/statistics") public class StatisticsController extends Object
  • Constructor Details

    • StatisticsController

      public StatisticsController()
  • Method Details

    • getProjectStatistics

      @GetMapping("/project") public BaseResponse<ProjectStatisticsResponse> getProjectStatistics(@Validated @ModelAttribute SearchCond searchCond)
      프로젝트 통계 조회 API
      Parameters:
      searchCond - 프로젝트 검색 조건
      Returns:
      BaseResponse
    • getBatchStatistics

      @GetMapping("/batch") public BaseResponse<List<BatchCollegeStatisticsResponse>> getBatchStatistics()
      단과대별 학기별 통계 일괄 조회 API
      Returns:
      BaseResponse<List>
    • getQuestionStatistics

      @GetMapping("/question") public BaseResponse<QuestionStatisticsResponse> getQuestionStatistics(@Validated @ModelAttribute SearchCond searchCond)
      질문 통계 조회 API
      Parameters:
      searchCond - 질문 검색 조건
      Returns:
      BaseResponse
    • getPatentStatistics

      @GetMapping("/patent") public BaseResponse<List<PatentStatisticsResponse>> getPatentStatistics()
      특허 통계 조회 API
      Returns:
      BaseResponse<List>
    • exportToExcel

      @GetMapping("/export/excel") @PreAuthorize("hasAnyAuthority(\'professor:read\', \'admin:read\')") public void exportToExcel(@AuthenticationPrincipal User user, jakarta.servlet.http.HttpServletResponse response, @RequestParam(value="excelType",defaultValue="PROJECT") ExcelType excelType, @RequestParam(value="statisticsType",defaultValue="TOTAL") StatisticsType statisticsType, @RequestParam(value="filterId",required=false) Integer filterId, @RequestParam(value="semesterId",required=false) Integer semesterId)
      엑셀 다운로드 API
      Parameters:
      response - HttpServletResponse
      statisticsType - 통계 타입
    • migrateStatistics

      @PostMapping("/migration") @PreAuthorize("hasAnyAuthority(\'admin:create\', \'admin:update\', \'admin:delete\')") public BaseResponse<String> migrateStatistics()
      통계 마이그레이션 API
      Returns:
      BaseResponse