whycxzp
2024-07-23 c33de1c323ecf239706fe79c25044236ebc827a8
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
29
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.service.CheckDialogService;
import com.whyc.service.CheckService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
import javax.servlet.http.HttpServletRequest;
 
@RestController
@RequestMapping("checkDialog")
@Api(tags = "启动放电时弹窗")
public class CheckDialogController {
 
    @Autowired
    private CheckDialogService service;
 
    @ApiOperation(value = "检测启动放电时弹窗有则替换没有就添加")
    @GetMapping("insertOrUpdateDialog")
    public Response insertOrUpdateDialog(@RequestParam int devId, @RequestParam String testStartTime){
        return  service.insertOrUpdateDialog(devId,testStartTime);
    }
}