package com.keao.edu.controller; import com.keao.edu.common.controller.BaseController; import com.keao.edu.common.entity.HttpResponseResult; import com.keao.edu.common.page.PageInfo; import com.keao.edu.user.entity.Subject; import com.keao.edu.user.page.SubjectQueryInfo; import com.keao.edu.user.service.SubjectService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RequestMapping("subject") @Api(tags = "科目服务") @RestController public class SubjectController extends BaseController { @Autowired private SubjectService subjectService; @ApiOperation(value = "学生端分页查询科目列表") @GetMapping("/studentQueryPage") public HttpResponseResult> studentQueryPage(SubjectQueryInfo queryInfo){ return succeed(subjectService.queryPage(queryInfo)); } }