|
@@ -1,9 +1,19 @@
|
|
|
package com.usky.alarm.controller.web;
|
|
|
|
|
|
|
|
|
+import com.usky.alarm.domain.BaseAlarmNoticeResult;
|
|
|
+import com.usky.alarm.service.BaseAlarmNoticeResultService;
|
|
|
+import com.usky.common.core.bean.ApiResult;
|
|
|
+import com.usky.common.core.bean.CommonPage;
|
|
|
+import com.usky.common.log.annotation.Log;
|
|
|
+import com.usky.common.log.enums.BusinessType;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
* <p>
|
|
@@ -13,9 +23,27 @@ import org.springframework.stereotype.Controller;
|
|
|
* @author han
|
|
|
* @since 2023-09-25
|
|
|
*/
|
|
|
-@Controller
|
|
|
+@RestController
|
|
|
@RequestMapping("/baseAlarmNoticeResult")
|
|
|
public class BaseAlarmNoticeResultController {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private BaseAlarmNoticeResultService baseAlarmNoticeResultService;
|
|
|
+
|
|
|
+
|
|
|
+ * 推送记录查看分页
|
|
|
+ * @param receiver 接收人
|
|
|
+ * @param current 当前页
|
|
|
+ * @param size 每页条数
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Log(title = "关联设备查看分页", businessType = BusinessType.OTHER)
|
|
|
+ @GetMapping("/resultInfo")
|
|
|
+ public ApiResult<CommonPage<BaseAlarmNoticeResult>> resultInfo(@RequestParam(value = "receiver", required = false) String receiver,
|
|
|
+ @RequestParam(value = "current", required = false, defaultValue = "1") Integer current,
|
|
|
+ @RequestParam(value = "size", required = false, defaultValue = "10") Integer size)
|
|
|
+ {
|
|
|
+ return ApiResult.success(baseAlarmNoticeResultService.resultInfo(receiver, current, size));
|
|
|
+ }
|
|
|
}
|
|
|
|