package com.gkhy.exam.institutionalaccess.controller; import com.gkhy.exam.institutionalaccess.model.query.ThCertQuery; import com.gkhy.exam.institutionalaccess.model.query.ThQuestionBankQuery; import com.gkhy.exam.institutionalaccess.service.ThCertService; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.page.TableDataInfo; 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; @RestController @RequestMapping("/th/cert") public class ThCertController extends BaseController { @Autowired private ThCertService certService; @GetMapping("/page") public TableDataInfo page(ThCertQuery query) { startPage(); return getDataTable(this.certService.listByPage(query)); } }