package com.newfiber.api.pc.controller.zhz; import com.newfiber.api.core.annotation.SysLog; import com.newfiber.api.core.commons.ResultCode; import com.newfiber.api.core.commons.ResultObj; import com.newfiber.api.pc.model.meet.SimulateAutoMeetManage; import com.newfiber.api.pc.service.SimulateAutoMeetManageService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.validation.Valid; /** * 模拟触发报警的控制层 * @description: TODO * @author: 张鸿志 * @date: 2020/12/23 10:00 * @version: v1.0 */ @RestController @RequestMapping("/simulate") @Api(value = "SimulateMeetController",tags = "模拟触发报警的控制层") public class SimulateMeetController { @Autowired private SimulateAutoMeetManageService simulateAutoMeetManageService; @PostMapping("/auto") @ApiOperation("模拟自动触发报警,并发送短信通知") @SysLog(actionType = "3",value = "模拟自动触发报警,并发送短信通知") public ResultObj<String> simulateMeet(@Valid @RequestBody SimulateAutoMeetManage simulateAutoMeetManage){ return new ResultObj<String>(ResultCode.OK,simulateAutoMeetManageService.simulateMeetAuto(simulateAutoMeetManage)); } }