| | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.ruoyi.alarm.config.domain.ArdAlarmTypeConfig; |
| | | import com.ruoyi.alarm.config.service.IArdAlarmTypeConfigService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | * @date 2023-06-21 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/alarm/alarmConfig") |
| | | @RequestMapping("/alarm/config") |
| | | @Api(tags = "报警类型配置") |
| | | public class ArdAlarmTypeConfigController extends BaseController |
| | | { |
| | |
| | | /** |
| | | * 查询报警类型用户关联列表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('alarm:alarmConfig:list')") |
| | | @PreAuthorize("@ss.hasPermi('alarm:config:list')") |
| | | @GetMapping("/list") |
| | | @ApiOperation("查询报警类型用户关联列表") |
| | | public TableDataInfo list(ArdAlarmTypeConfig ardAlarmTypeConfig) |
| | |
| | | /** |
| | | * 导出报警类型用户关联列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('alarm:alarmConfig:export')") |
| | | @PreAuthorize("@ss.hasPermi('alarm:config:export')") |
| | | @Log(title = "报警类型用户关联", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ArdAlarmTypeConfig ardAlarmTypeConfig) |
| | |
| | | /** |
| | | * 获取报警类型用户关联详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('alarm:alarmConfig:query')") |
| | | @ApiOperation("获取报警类型用户关联详细信息") |
| | | @PreAuthorize("@ss.hasPermi('alarm:config:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) |
| | | { |
| | |
| | | @Log(title = "批量配置报警类型", businessType = BusinessType.INSERT) |
| | | @PostMapping("/batchConfig") |
| | | @ApiOperation("批量配置报警类型") |
| | | @ApiOperationSupport(includeParameters = {"map.userId", "map.commands"}) |
| | | public AjaxResult addBatch(@RequestBody Map<String,Object> map) |
| | | { |
| | | return AjaxResult.success(ardAlarmTypeConfigService.insertArdAlarmTypeConfig(map)); |
| | |
| | | /** |
| | | * 新增报警类型用户关联 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('alarm:alarmConfig:add')") |
| | | @ApiOperation("新增报警类型用户关联") |
| | | @PreAuthorize("@ss.hasPermi('alarm:config:add')") |
| | | @Log(title = "报警类型用户关联", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ArdAlarmTypeConfig ardAlarmTypeConfig) |
| | |
| | | /** |
| | | * 修改报警类型用户关联 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('alarm:alarmConfig:edit')") |
| | | @ApiOperation("修改报警类型用户关联") |
| | | @PreAuthorize("@ss.hasPermi('alarm:config:edit')") |
| | | @Log(title = "报警类型用户关联", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ArdAlarmTypeConfig ardAlarmTypeConfig) |
| | |
| | | /** |
| | | * 删除报警类型用户关联 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('alarm:alarmConfig:remove')") |
| | | @ApiOperation("删除报警类型用户关联") |
| | | @PreAuthorize("@ss.hasPermi('alarm:config:remove')") |
| | | @Log(title = "报警类型用户关联", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) |