|
@@ -10,6 +10,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import com.qmth.boot.api.annotation.Aac;
|
|
|
import com.qmth.boot.api.annotation.BOOL;
|
|
@@ -30,68 +31,75 @@ import io.swagger.annotations.ApiOperation;
|
|
|
@RequestMapping(ApiConstant.DEFAULT_URI_PREFIX + "/paper")
|
|
|
@Aac(strict = BOOL.FALSE, auth = BOOL.TRUE)
|
|
|
public class PaperController extends BaseController {
|
|
|
+
|
|
|
+
|
|
|
+ @PostMapping("import-course")
|
|
|
+ @ApiOperation(value = "导入科目")
|
|
|
+ public void importPaper(@RequestParam Long examId, @RequestParam MultipartFile file) {
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "下载科目导入模板")
|
|
|
+ @PostMapping("template-course")
|
|
|
+ public void getImportTemplate() {
|
|
|
+ exportFile("科目导入模板.xlsx", ResouceUtil.getStream("importtemplates/courseImport.xlsx"));
|
|
|
+ }
|
|
|
|
|
|
@ApiOperation(value = "导出")
|
|
|
@PostMapping("export")
|
|
|
public void export(PaperQuery query, HttpServletResponse response) {
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "下载导入模板")
|
|
|
- @PostMapping("template")
|
|
|
- public void getImportTemplate() {
|
|
|
- exportFile("试卷结构导入模板.xlsx", ResouceUtil.getStream("importtemplates/absentManualImportTemplate.xlsx"));
|
|
|
- }
|
|
|
|
|
|
@ApiOperation(value = "获取分页")
|
|
|
- @RequestMapping(value = "/page", method = RequestMethod.POST)
|
|
|
+ @RequestMapping(value = "page", method = RequestMethod.POST)
|
|
|
public PageResult<PaperVo> page(PaperQuery query) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取列表")
|
|
|
- @RequestMapping(value = "/list", method = RequestMethod.POST)
|
|
|
+ @RequestMapping(value = "list", method = RequestMethod.POST)
|
|
|
public List<PaperVo> list(@RequestParam Long examId) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取信息")
|
|
|
- @RequestMapping(value = "/info", method = RequestMethod.POST)
|
|
|
+ @RequestMapping(value = "info", method = RequestMethod.POST)
|
|
|
public PaperVo info(@RequestParam Long id) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "设置满分")
|
|
|
- @RequestMapping(value = "/total-score", method = RequestMethod.POST)
|
|
|
+ @RequestMapping(value = "total-score", method = RequestMethod.POST)
|
|
|
public PaperVo totalScore(@RequestParam Long paperId, @RequestParam Double totalScore) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "试卷结构提交")
|
|
|
- @RequestMapping(value = "/struct/submit ", method = RequestMethod.POST)
|
|
|
+ @RequestMapping(value = "struct/submit ", method = RequestMethod.POST)
|
|
|
public PaperVo structSubmit(@RequestBody StructDomain domain) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "试卷结构暂存")
|
|
|
- @RequestMapping(value = "/struct/save ", method = RequestMethod.POST)
|
|
|
+ @RequestMapping(value = "struct/save ", method = RequestMethod.POST)
|
|
|
public PaperVo structSave(@RequestBody StructDomain domain) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取分组列表")
|
|
|
- @RequestMapping(value = "/group/list", method = RequestMethod.POST)
|
|
|
+ @RequestMapping(value = "group/list", method = RequestMethod.POST)
|
|
|
public List<GroupVo> groupList(@RequestParam Long paperId) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取分组信息")
|
|
|
- @RequestMapping(value = "/group/info", method = RequestMethod.POST)
|
|
|
+ @RequestMapping(value = "group/info", method = RequestMethod.POST)
|
|
|
public GroupVo groupInfo(@RequestParam Long paperId,@RequestParam Integer groupNumber) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "保存分组信息")
|
|
|
- @RequestMapping(value = "/group/save", method = RequestMethod.POST)
|
|
|
+ @RequestMapping(value = "group/save", method = RequestMethod.POST)
|
|
|
public void groupInfo(@RequestBody PaperGroup domain) {
|
|
|
}
|
|
|
}
|