|
@@ -38,7 +38,7 @@ import com.miaxis.common.core.page.ResponsePageInfo;
|
|
|
* @date 2021-08-19
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/question/wrong")
|
|
|
+@RequestMapping(Constants.STUDENT_PREFIX+"/question/wrong")
|
|
|
@Api(tags={"【APP-错题】"})
|
|
|
public class QuestionWrongController extends BaseController{
|
|
|
@Autowired
|
|
@@ -47,7 +47,6 @@ public class QuestionWrongController extends BaseController{
|
|
|
/**
|
|
|
* 查询wrong列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('question:wrong:list')")
|
|
|
@GetMapping("/list")
|
|
|
@ApiOperation("查询wrong列表")
|
|
|
@ApiImplicitParams({
|
|
@@ -59,13 +58,12 @@ public class QuestionWrongController extends BaseController{
|
|
|
List<QuestionWrong> list = questionWrongService.selectQuestionWrongList(questionWrong);
|
|
|
return toResponsePageInfo(list);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 获取wrong详细信息
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('question:wrong:query')")
|
|
|
@GetMapping(value = "/{id}")
|
|
|
@ApiOperation("获取wrong详细信息")
|
|
|
public Response<QuestionWrong> getInfo(
|
|
@@ -78,7 +76,6 @@ public class QuestionWrongController extends BaseController{
|
|
|
/**
|
|
|
* 新增wrong
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('question:wrong:add')")
|
|
|
@Log(title = "wrong", businessType = BusinessTypeEnum.INSERT)
|
|
|
@PostMapping
|
|
|
@ApiOperation("新增wrong")
|
|
@@ -101,7 +98,6 @@ public class QuestionWrongController extends BaseController{
|
|
|
/**
|
|
|
* 修改wrong
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('question:wrong:edit')")
|
|
|
@Log(title = "wrong", businessType = BusinessTypeEnum.UPDATE)
|
|
|
@PutMapping
|
|
|
@ApiOperation("修改wrong")
|
|
@@ -112,7 +108,6 @@ public class QuestionWrongController extends BaseController{
|
|
|
/**
|
|
|
* 删除wrong
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('question:wrong:remove')")
|
|
|
@Log(title = "wrong", businessType = BusinessTypeEnum.DELETE)
|
|
|
@DeleteMapping("/{ids}")
|
|
|
@ApiOperation("删除wrong")
|