From 2a97777332696e38eff1aae1e59967d858f16eb3 Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Sat, 6 Jan 2024 13:36:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/DcBoardReleaseLogController.java | 14 ++++++++++++-- .../controller/DcInfoBoardTemplateController.java | 4 ++-- .../controller/DcPublishInfoController.java | 2 +- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/zc-business/src/main/java/com/zc/business/controller/DcBoardReleaseLogController.java b/zc-business/src/main/java/com/zc/business/controller/DcBoardReleaseLogController.java index 0b7dbe0a..c2e53dc6 100644 --- a/zc-business/src/main/java/com/zc/business/controller/DcBoardReleaseLogController.java +++ b/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)); } diff --git a/zc-business/src/main/java/com/zc/business/controller/DcInfoBoardTemplateController.java b/zc-business/src/main/java/com/zc/business/controller/DcInfoBoardTemplateController.java index 90ea91aa..7787dd50 100644 --- a/zc-business/src/main/java/com/zc/business/controller/DcInfoBoardTemplateController.java +++ b/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)); } diff --git a/zc-business/src/main/java/com/zc/business/controller/DcPublishInfoController.java b/zc-business/src/main/java/com/zc/business/controller/DcPublishInfoController.java index 0729e014..35e82ade 100644 --- a/zc-business/src/main/java/com/zc/business/controller/DcPublishInfoController.java +++ b/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