package com.kwan.shuyu.controller; import com.kwan.shuyu.domain.CoursePub; import com.kwan.shuyu.domain.CourseSearchParam; import com.kwan.shuyu.domain.QueryResponseResult; import com.kwan.shuyu.service.EsCourseServiceImpl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/search/course") public class EsCourseController { @Autowired private EsCourseServiceImpl esCourseServiceImpl; @GetMapping(value = "/list/{page}/{size}") public QueryResponseResult<CoursePub> list(@PathVariable("page") int page , @PathVariable("size") int size, CourseSearchParam courseSearchParam) { return esCourseServiceImpl.list(page, size, courseSearchParam); } }