Browse Source

接口修改

develop
lau572 11 months ago
parent
commit
2a97777332
  1. 14
      zc-business/src/main/java/com/zc/business/controller/DcBoardReleaseLogController.java
  2. 4
      zc-business/src/main/java/com/zc/business/controller/DcInfoBoardTemplateController.java
  3. 2
      zc-business/src/main/java/com/zc/business/controller/DcPublishInfoController.java

14
zc-business/src/main/java/com/zc/business/controller/DcBoardReleaseLogController.java

@ -2,6 +2,10 @@ package com.zc.business.controller;
import java.util.List;
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.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@ -27,6 +31,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @author ruoyi
* @date 2024-01-05
*/
@Api(tags = {"情报板发布日志"})
@RestController
@RequestMapping("/business/boardReleaseLog")
public class DcBoardReleaseLogController extends BaseController
@ -37,6 +42,7 @@ public class DcBoardReleaseLogController extends BaseController
/**
* 查询情报板内容发布日志列表
*/
@ApiOperation("查询情报板内容发布日志列表")
@PreAuthorize("@ss.hasPermi('business:boardReleaseLog:list')")
@GetMapping("/list")
public TableDataInfo list(DcBoardReleaseLog dcBoardReleaseLog)
@ -49,6 +55,7 @@ public class DcBoardReleaseLogController extends BaseController
/**
* 导出情报板内容发布日志列表
*/
@ApiOperation("导出情报板内容发布日志列表")
@PreAuthorize("@ss.hasPermi('business:boardReleaseLog:export')")
@Log(title = "情报板内容发布日志", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ -62,9 +69,10 @@ public class DcBoardReleaseLogController extends BaseController
/**
* 获取情报板内容发布日志详细信息
*/
@ApiOperation("获取情报板内容发布日志详细信息")
@PreAuthorize("@ss.hasPermi('business:boardReleaseLog:query')")
@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));
}
@ -72,6 +80,7 @@ public class DcBoardReleaseLogController extends BaseController
/**
* 新增情报板内容发布日志
*/
@ApiOperation("新增情报板内容发布日志")
@PreAuthorize("@ss.hasPermi('business:boardReleaseLog:add')")
@Log(title = "情报板内容发布日志", businessType = BusinessType.INSERT)
@PostMapping
@ -94,10 +103,11 @@ public class DcBoardReleaseLogController extends BaseController
/**
* 删除情报板内容发布日志
*/
@ApiOperation("删除情报板内容发布日志")
@PreAuthorize("@ss.hasPermi('business:boardReleaseLog:remove')")
@Log(title = "情报板内容发布日志", businessType = BusinessType.DELETE)
@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));
}

4
zc-business/src/main/java/com/zc/business/controller/DcInfoBoardTemplateController.java

@ -29,8 +29,8 @@ public class DcInfoBoardTemplateController extends BaseController
@ApiOperation("获取情报板模板")
@GetMapping("/getAllVmsTemplate")
public AjaxResult getAllVmsTemplate(@ApiParam(value="情报板分组", name="category", required=true) String category,
@ApiParam(value="分辨率", name="devicePixel", required=true) String devicePixel) {
public AjaxResult getAllVmsTemplate(@ApiParam(value="情报板分组", name="category") String category,
@ApiParam(value="分辨率", name="devicePixel") String devicePixel) {
return AjaxResult.success(dcInfoBoardTemplateService.getAllVmsTemplate(category, devicePixel));
}

2
zc-business/src/main/java/com/zc/business/controller/DcPublishInfoController.java

@ -31,7 +31,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @author ruoyi
* @date 2024-01-04
*/
@Api(value = "信息发布记录")
@Api(value = "信息发布记录",tags = {"信息发布记录"})
@RestController
@RequestMapping("/business/dcPublishInfo")
public class DcPublishInfoController extends BaseController

Loading…
Cancel
Save