|
@@ -1,25 +1,22 @@
|
|
package com.qmth.exam.reserve.controller.student;
|
|
package com.qmth.exam.reserve.controller.student;
|
|
|
|
|
|
-import java.util.List;
|
|
|
|
-
|
|
|
|
-import org.slf4j.Logger;
|
|
|
|
-import org.slf4j.LoggerFactory;
|
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
-
|
|
|
|
import com.qmth.boot.api.annotation.Aac;
|
|
import com.qmth.boot.api.annotation.Aac;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.exam.reserve.bean.examsite.ExamSiteInfo;
|
|
import com.qmth.exam.reserve.bean.examsite.ExamSiteInfo;
|
|
-import com.qmth.exam.reserve.cache.impl.ApplyTaskCacheService;
|
|
|
|
import com.qmth.exam.reserve.controller.BaseController;
|
|
import com.qmth.exam.reserve.controller.BaseController;
|
|
import com.qmth.exam.reserve.service.ExamSiteService;
|
|
import com.qmth.exam.reserve.service.ExamSiteService;
|
|
-
|
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiParam;
|
|
import io.swagger.annotations.ApiParam;
|
|
|
|
+import org.slf4j.Logger;
|
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
+
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
@RestController
|
|
@RestController
|
|
@Api(tags = "【考生端】考点相关接口")
|
|
@Api(tags = "【考生端】考点相关接口")
|
|
@@ -32,9 +29,6 @@ public class ExamSiteController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private ExamSiteService examSiteService;
|
|
private ExamSiteService examSiteService;
|
|
|
|
|
|
- @Autowired
|
|
|
|
- private ApplyTaskCacheService cacheService;
|
|
|
|
-
|
|
|
|
@ApiOperation(value = "获取“数据分类”关联的考点列表")
|
|
@ApiOperation(value = "获取“数据分类”关联的考点列表")
|
|
@PostMapping(value = "/list")
|
|
@PostMapping(value = "/list")
|
|
public List<ExamSiteInfo> list(@ApiParam("数据分类ID") @RequestParam(required = false) Long categoryId) {
|
|
public List<ExamSiteInfo> list(@ApiParam("数据分类ID") @RequestParam(required = false) Long categoryId) {
|
|
@@ -45,11 +39,4 @@ public class ExamSiteController extends BaseController {
|
|
return examSiteService.getExamSiteListForStudent(categoryId);
|
|
return examSiteService.getExamSiteListForStudent(categoryId);
|
|
}
|
|
}
|
|
|
|
|
|
- @Aac(strict = false, auth = false)
|
|
|
|
- @ApiOperation(value = "清空某个考点中的缓存")
|
|
|
|
- @PostMapping(value = "/clear/cache")
|
|
|
|
- public void clearReidsCache(@ApiParam("考点ID") @RequestParam Long id) {
|
|
|
|
- cacheService.clearApplyTotalCountCache(id);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
}
|
|
}
|