package com.xunmei.core.access.controller;

import com.xunmei.common.core.web.controller.BaseController;
import com.xunmei.common.core.web.domain.AjaxResult;
import com.xunmei.common.core.web.page.TableDataInfo;
import com.xunmei.core.access.domain.CoreMonitoringTaskRegistrationMonitor;
import com.xunmei.core.access.service.ICoreMonitoringTaskRegistrationMonitorService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.xunmei.common.log.annotation.Log;
import com.xunmei.common.log.enums.BusinessType;
import com.xunmei.common.security.annotation.RequiresPermissions;


/**
 * 调阅任务登记监控Controller
 *
 * @author xunmei
 * @date 2023-08-29
 */
@Api(tags = {"CoreMonitoringTaskRegistrationMonitor" })
@RestController
@RequestMapping("/monitor")
public class CoreMonitoringTaskRegistrationMonitorController extends BaseController {
    @Autowired
    private ICoreMonitoringTaskRegistrationMonitorService coreMonitoringTaskRegistrationMonitorService;
/*
*//**
 * 查询调阅任务登记监控列表
 *//*
@ApiOperation(value = "查询CoreMonitoringTaskRegistrationMonitor列表")
@RequiresPermissions("system:monitor:list")
@GetMapping("/list")
    public TableDataInfo<CoreMonitoringTaskRegistrationMonitor> list(CoreMonitoringTaskRegistrationMonitor coreMonitoringTaskRegistrationMonitor) {

      //  return coreMonitoringTaskRegistrationMonitorService.selectPage( coreMonitoringTaskRegistrationMonitor);
   return  null;
    }*/



    /**
     * 获取调阅任务登记监控详细信息
     */
    @ApiOperation(value = "获取CoreMonitoringTaskRegistrationMonitor详细信息")
    @RequiresPermissions("system:monitor:query")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") String id) {
        return success(coreMonitoringTaskRegistrationMonitorService.selectCoreMonitoringTaskRegistrationMonitorById(id));
    }

    /**
     * 新增调阅任务登记监控
     */
    @ApiOperation(value = "新增CoreMonitoringTaskRegistrationMonitor")
    @RequiresPermissions("system:monitor:add")
    @Log(title = "调阅任务登记监控" , businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add(@RequestBody CoreMonitoringTaskRegistrationMonitor coreMonitoringTaskRegistrationMonitor) {
        return toAjax(coreMonitoringTaskRegistrationMonitorService.insertCoreMonitoringTaskRegistrationMonitor(coreMonitoringTaskRegistrationMonitor));
    }

    /**
     * 修改调阅任务登记监控
     */
    @ApiOperation(value = "修改CoreMonitoringTaskRegistrationMonitor")
    @RequiresPermissions("system:monitor:edit")
    @Log(title = "调阅任务登记监控" , businessType = BusinessType.UPDATE)
    @PutMapping
    public AjaxResult edit(@RequestBody CoreMonitoringTaskRegistrationMonitor coreMonitoringTaskRegistrationMonitor) {
        return toAjax(coreMonitoringTaskRegistrationMonitorService.updateCoreMonitoringTaskRegistrationMonitor(coreMonitoringTaskRegistrationMonitor));
    }
/*
    *//**
     * 删除调阅任务登记监控
     *//*
    @ApiOperation(value = "删除CoreMonitoringTaskRegistrationMonitor")
    @RequiresPermissions("system:monitor:remove")
    @Log(title = "调阅任务登记监控" , businessType = BusinessType.DELETE)
    @DeleteMapping("/{ids}")
    public AjaxResult remove(@PathVariable String[] ids) {
        return toAjax(coreMonitoringTaskRegistrationMonitorService.deleteCoreMonitoringTaskRegistrationMonitorByIds(ids));
    }*/
}
