whycxzp
2023-08-16 618fd4fe93cb0901011c59f05a4a68376b378fe2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.pojo.AlarmUser;
import com.whyc.service.AlarmUserSendService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
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.annotation.Resource;
import java.util.List;
 
@RequestMapping("AlarmUserSend")
@RestController
@Api(tags = "用户告警推送")
public class AlarmUserSendController {
 
    @Resource
    private AlarmUserSendService service;
    @PostMapping("/addOrUpdateList")
    @ApiOperation("添加或更新告警推送记录数据")
    public Response add(@RequestBody List<AlarmUser> list){
       return service.addOrUpdateList(list);
    }
}