|
@ -2,6 +2,10 @@ package com.zc.business.controller; |
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
|
import io.swagger.annotations.ApiParam; |
|
|
import org.springframework.security.access.prepost.PreAuthorize; |
|
|
import org.springframework.security.access.prepost.PreAuthorize; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
@ -27,6 +31,7 @@ import com.ruoyi.common.core.page.TableDataInfo; |
|
|
* @author ruoyi |
|
|
* @author ruoyi |
|
|
* @date 2024-01-05 |
|
|
* @date 2024-01-05 |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@Api(tags = {"情报板发布日志"}) |
|
|
@RestController |
|
|
@RestController |
|
|
@RequestMapping("/business/boardReleaseLog") |
|
|
@RequestMapping("/business/boardReleaseLog") |
|
|
public class DcBoardReleaseLogController extends BaseController |
|
|
public class DcBoardReleaseLogController extends BaseController |
|
@ -37,6 +42,7 @@ public class DcBoardReleaseLogController extends BaseController |
|
|
/** |
|
|
/** |
|
|
* 查询情报板内容发布日志列表 |
|
|
* 查询情报板内容发布日志列表 |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@ApiOperation("查询情报板内容发布日志列表") |
|
|
@PreAuthorize("@ss.hasPermi('business:boardReleaseLog:list')") |
|
|
@PreAuthorize("@ss.hasPermi('business:boardReleaseLog:list')") |
|
|
@GetMapping("/list") |
|
|
@GetMapping("/list") |
|
|
public TableDataInfo list(DcBoardReleaseLog dcBoardReleaseLog) |
|
|
public TableDataInfo list(DcBoardReleaseLog dcBoardReleaseLog) |
|
@ -49,6 +55,7 @@ public class DcBoardReleaseLogController extends BaseController |
|
|
/** |
|
|
/** |
|
|
* 导出情报板内容发布日志列表 |
|
|
* 导出情报板内容发布日志列表 |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@ApiOperation("导出情报板内容发布日志列表") |
|
|
@PreAuthorize("@ss.hasPermi('business:boardReleaseLog:export')") |
|
|
@PreAuthorize("@ss.hasPermi('business:boardReleaseLog:export')") |
|
|
@Log(title = "情报板内容发布日志", businessType = BusinessType.EXPORT) |
|
|
@Log(title = "情报板内容发布日志", businessType = BusinessType.EXPORT) |
|
|
@PostMapping("/export") |
|
|
@PostMapping("/export") |
|
@ -62,9 +69,10 @@ public class DcBoardReleaseLogController extends BaseController |
|
|
/** |
|
|
/** |
|
|
* 获取情报板内容发布日志详细信息 |
|
|
* 获取情报板内容发布日志详细信息 |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@ApiOperation("获取情报板内容发布日志详细信息") |
|
|
@PreAuthorize("@ss.hasPermi('business:boardReleaseLog:query')") |
|
|
@PreAuthorize("@ss.hasPermi('business:boardReleaseLog:query')") |
|
|
@GetMapping(value = "/{id}") |
|
|
@GetMapping(value = "/{id}") |
|
|
public AjaxResult getInfo(@PathVariable("id") Long id) |
|
|
public AjaxResult getInfo(@ApiParam(value = "id", name = "id",required = true) @PathVariable("id") Long id) |
|
|
{ |
|
|
{ |
|
|
return AjaxResult.success(dcBoardReleaseLogService.selectDcBoardReleaseLogById(id)); |
|
|
return AjaxResult.success(dcBoardReleaseLogService.selectDcBoardReleaseLogById(id)); |
|
|
} |
|
|
} |
|
@ -72,6 +80,7 @@ public class DcBoardReleaseLogController extends BaseController |
|
|
/** |
|
|
/** |
|
|
* 新增情报板内容发布日志 |
|
|
* 新增情报板内容发布日志 |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@ApiOperation("新增情报板内容发布日志") |
|
|
@PreAuthorize("@ss.hasPermi('business:boardReleaseLog:add')") |
|
|
@PreAuthorize("@ss.hasPermi('business:boardReleaseLog:add')") |
|
|
@Log(title = "情报板内容发布日志", businessType = BusinessType.INSERT) |
|
|
@Log(title = "情报板内容发布日志", businessType = BusinessType.INSERT) |
|
|
@PostMapping |
|
|
@PostMapping |
|
@ -94,10 +103,11 @@ public class DcBoardReleaseLogController extends BaseController |
|
|
/** |
|
|
/** |
|
|
* 删除情报板内容发布日志 |
|
|
* 删除情报板内容发布日志 |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@ApiOperation("删除情报板内容发布日志") |
|
|
@PreAuthorize("@ss.hasPermi('business:boardReleaseLog:remove')") |
|
|
@PreAuthorize("@ss.hasPermi('business:boardReleaseLog:remove')") |
|
|
@Log(title = "情报板内容发布日志", businessType = BusinessType.DELETE) |
|
|
@Log(title = "情报板内容发布日志", businessType = BusinessType.DELETE) |
|
|
@DeleteMapping("/{ids}") |
|
|
@DeleteMapping("/{ids}") |
|
|
public AjaxResult remove(@PathVariable Long[] ids) |
|
|
public AjaxResult remove(@ApiParam(value = "id", name = "id",required = true) @PathVariable Long[] ids) |
|
|
{ |
|
|
{ |
|
|
return toAjax(dcBoardReleaseLogService.deleteDcBoardReleaseLogByIds(ids)); |
|
|
return toAjax(dcBoardReleaseLogService.deleteDcBoardReleaseLogByIds(ids)); |
|
|
} |
|
|
} |
|
|