|
|
|
@ -46,7 +46,7 @@ public class DocInfoController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 查询文章管理列表
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('biemo:docInfo:list')")
|
|
|
|
|
//@PreAuthorize("@ss.hasPermi('biemo:docInfo:list')")
|
|
|
|
|
@GetMapping("/list")
|
|
|
|
|
public Page<DocInfo> list(DocInfo docInfo)
|
|
|
|
|
{
|
|
|
|
@ -64,7 +64,7 @@ public class DocInfoController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 导出文章管理列表
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('biemo:docInfo:export')")
|
|
|
|
|
//@PreAuthorize("@ss.hasPermi('biemo:docInfo:export')")
|
|
|
|
|
@Log(title = "文章管理", businessType = BusinessType.EXPORT)
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
|
public void export(HttpServletResponse response, DocInfo docInfo)
|
|
|
|
@ -77,7 +77,7 @@ public class DocInfoController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 获取文章管理详细信息
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('biemo:docInfo:query')")
|
|
|
|
|
//@PreAuthorize("@ss.hasPermi('biemo:docInfo:query')")
|
|
|
|
|
@GetMapping(value = "/{id}")
|
|
|
|
|
public AjaxResult getInfo(@PathVariable("id") String id)
|
|
|
|
|
{
|
|
|
|
@ -87,7 +87,7 @@ public class DocInfoController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 获取文章管理详细信息 去掉内容标签
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('biemo:docInfo:query')")
|
|
|
|
|
//@PreAuthorize("@ss.hasPermi('biemo:docInfo:query')")
|
|
|
|
|
@GetMapping(value = "/getInfoDelHtml/{id}")
|
|
|
|
|
public AjaxResult getInfoDelHtml(@PathVariable("id") String docInfoId) throws IOException {
|
|
|
|
|
DocInfo docInfo = docInfoService.selectDocInfoById(docInfoId);
|
|
|
|
@ -156,7 +156,7 @@ public class DocInfoController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 新增文章管理或修改文章
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('biemo:docInfo:add')")
|
|
|
|
|
//@PreAuthorize("@ss.hasPermi('biemo:docInfo:add')")
|
|
|
|
|
@Log(title = "文章新增", businessType = BusinessType.INSERT)
|
|
|
|
|
@RequestMapping
|
|
|
|
|
public AjaxResult add(@RequestBody DocInfo docInfo)
|
|
|
|
@ -168,7 +168,7 @@ public class DocInfoController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 删除文章管理
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('biemo:docInfo:remove')")
|
|
|
|
|
//@PreAuthorize("@ss.hasPermi('biemo:docInfo:remove')")
|
|
|
|
|
@Log(title = "文章删除", businessType = BusinessType.DELETE)
|
|
|
|
|
@DeleteMapping("/{ids}")
|
|
|
|
|
public AjaxResult remove(@PathVariable String[] ids)
|
|
|
|
|