package com.whyc.controller; import com.whyc.dto.Response; import com.whyc.pojo.db_ckpwrdev_data_rt.CKPowerDevModecontrol; import com.whyc.pojo.db_ckpwrdev_data_rt.CKPowerDevModeparam; import com.whyc.service.CKPowerDevModecontrolService; import com.whyc.service.CKPowerDevModeparamService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @RestController @Api(tags = "测控电源模块控制") @RequestMapping("cKPowerDevModecontrol") public class CKPowerDevModecontrolController { @Autowired private CKPowerDevModecontrolService service; @ApiOperation("读取模块控制") @GetMapping("getModeControl") public Response getModeControl(){ return service.getModeControl(); } @ApiOperation("设置模块控制") @PostMapping("setModeControl") public Response setModeControl(@RequestBody CKPowerDevModecontrol modeConrol){ return service.setModeControl(modeConrol); } }