package com.whyc.controller; import com.whyc.dto.DevA200AlarmDto; import com.whyc.dto.Response; import com.whyc.pojo.db_user.UserInf; import com.whyc.service.DevLithiumAlarmDataService; import com.whyc.util.ActionUtil; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.text.ParseException; /** * 锂电设备告警-历史 */ @RestController @Api(tags = "锂电设备告警历史") @RequestMapping("devLithiumAlarmDataHistory") public class DevLithiumAlarmDataHisController { @Autowired private DevLithiumAlarmDataService dataService; @ApiOperation(value = "获取历史告警") @PostMapping("getPage") public Response getPage( @RequestBody DevA200AlarmDto dto) throws ParseException { return dataService.getPage(dto); } }