济菏高速数据中心代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

53 lines
1.5 KiB

package com.zc.business.controller;
import com.ruoyi.common.core.domain.AjaxResult;
import com.zc.business.domain.DcBoardPublish;
import com.zc.business.service.IDcBoardService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;
/**
* @Description 情报板Controller
*
* @author liuwenge
* @date 2024/1/5 11:38
*/
@Api(tags = "情报板")
@RestController
@RequestMapping("/business/board")
public class DcBoardController {
@Autowired
private IDcBoardService dcBoardService;
/**
* 情报板发布
*/
@ApiOperation("情报板发布")
// @PreAuthorize("@ss.hasPermi('business:board:publish')")
@PostMapping("/publish")
public AjaxResult publish(@RequestBody DcBoardPublish dcBoardPublish){
return dcBoardService.publish(dcBoardPublish);
}
/**
* 情报板回读
*/
@ApiOperation("情报板回读")
// @PreAuthorize("@ss.hasPermi('business:board:realtimeProperty')")
@GetMapping("/realtimeProperty/{deviceId}")
public AjaxResult realtimeProperty(@ApiParam(name = "deviceId", value = "设备id", required = true) @PathVariable("deviceId") String deviceId){
return dcBoardService.realtimeProperty(deviceId);
}
}