|
|
|
@ -1,12 +1,15 @@
|
|
|
|
|
package com.ruoyi.web.controller.exam;
|
|
|
|
|
|
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
|
|
import com.ruoyi.system.domain.userbook.dto.UserBookDTO;
|
|
|
|
|
import com.ruoyi.web.controller.manager.UserBookManager;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
import org.springframework.ui.ModelMap;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
@ -52,6 +55,14 @@ public class UserBookController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("删除")
|
|
|
|
|
@Log(title = "错题", businessType = BusinessType.DELETE)
|
|
|
|
|
@PostMapping("/remove")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public AjaxResult remove(String ids) {
|
|
|
|
|
return toAjax(userBookManager.deleteRepoByIds(ids));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation("详情")
|
|
|
|
|
@GetMapping("/view/{id}")
|
|
|
|
|
public String view(@PathVariable("id") String id, ModelMap mmap) {
|
|
|
|
|