济菏高速数据中心代码
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.

75 lines
2.6 KiB

package com.zc.business.controller;
import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.zc.business.domain.DcInfoBoardTemplate;
import com.zc.business.service.IDcInfoBoardTemplateService;
import io.swagger.annotations.Api;
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.*;
/**
* 情报板模板Controller
*
*/
@Api(tags = {"情报板模板"})
@RestController
@RequestMapping("/business/boardTemplate")
public class DcInfoBoardTemplateController extends BaseController
{
@Autowired
private IDcInfoBoardTemplateService dcInfoBoardTemplateService;
@ApiOperation("获取情报板模板")
@GetMapping("/getAllVmsTemplate")
1 year ago
public AjaxResult getAllVmsTemplate(@ApiParam(value="情报板分组", name="category") String category,
@ApiParam(value="分辨率", name="devicePixel") String devicePixel) {
return AjaxResult.success(dcInfoBoardTemplateService.getAllVmsTemplate(category, devicePixel));
}
/**
* 新增情报板模板
*/
@ApiOperation("新增情报板模板")
// @PreAuthorize("@ss.hasPermi('business:boardTemplate:add')")
@Log(title = "情报板模板", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DcInfoBoardTemplate dcInfoBoardTemplate)
{
return AjaxResult.success(dcInfoBoardTemplateService.insertSdVmsTemplate(dcInfoBoardTemplate));
}
/**
* 修改情报板模板
*/
@ApiOperation("修改情报板模板")
// @PreAuthorize("@ss.hasPermi('business:boardTemplate:edit')")
@Log(title = "情报板模板", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DcInfoBoardTemplate dcInfoBoardTemplate)
{
return toAjax(dcInfoBoardTemplateService.updateSdVmsTemplate(dcInfoBoardTemplate));
}
/**
* 删除情报板模板
*/
@ApiOperation("删除情报板模板")
// @PreAuthorize("@ss.hasPermi('business:boardTemplate:remove')")
@Log(title = "情报板模板", businessType = BusinessType.DELETE)
@DeleteMapping("/{id}")
public AjaxResult remove(@PathVariable @ApiParam(value="id", name="id", required=true) Long id)
{
return toAjax(dcInfoBoardTemplateService.deleteSdVmsTemplateById(id));
}
}