package com.gkhy.exam.institutionalaccess.controller;
|
|
import com.gkhy.exam.institutionalaccess.model.query.ThBatchQuery;
|
import com.gkhy.exam.institutionalaccess.service.ThBatchManagerService;
|
import com.ruoyi.common.core.controller.BaseController;
|
import com.ruoyi.common.core.domain.AjaxResult;
|
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.PathVariable;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
@RestController
|
@RequestMapping("/th/batch")
|
public class ThBatchManagerController extends BaseController {
|
|
@Autowired
|
private ThBatchManagerService thBatchManagerService;
|
|
@GetMapping("/list/page")
|
public TableDataInfo listByPage(ThBatchQuery query) {
|
startPage();
|
return getDataTable(thBatchManagerService.listByPage(query));
|
}
|
@GetMapping("/period/{batchUuid}")
|
public AjaxResult period(@PathVariable String batchUuid) {
|
return AjaxResult.success(thBatchManagerService.period(batchUuid));
|
}
|
@GetMapping("/student/{batchUuid}")
|
public AjaxResult getStudent(@PathVariable String batchUuid) {
|
return AjaxResult.success(thBatchManagerService.getStudent(batchUuid));
|
}
|
}
|