whycxzp
2023-12-20 d51517b8901417c779575d881ac0e1b3d2d9f68b
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
30
31
32
33
34
35
36
37
38
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.pojo.db_ckpwrdev_data_rt.CKPowerDevHrTestParam;
import com.whyc.service.CKPowerDevHrTestParamService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
@RestController
@Api(tags = "测控核容装置")
@RequestMapping("ckPowerDevHrTestParam")
public class CKPowerDevHrTestParamController {
 
    @Autowired
    private CKPowerDevHrTestParamService service;
 
    //采用socket
    /*@ApiOperation("读取核容参数")
    @GetMapping("getBattDisParam")
    public Response getBattDisParam(){
        return service.getBattDisParam();
    }*/
 
    @ApiOperation("读取核容设备IP")
    @GetMapping("getDevIp")
    public Response getDevIp(){
        return service.getDevIp();
    }
 
    @ApiOperation("设置")
    @PostMapping("update")
    public Response update(@RequestBody CKPowerDevHrTestParam set){
        return service.update(set);
    }
 
}