whycxzp
2024-04-07 934de4748087b652625a61c4788848a8bc659806
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
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.pojo.db_ckpwrdev_data_rt.CKPowerDevAlmParam;
import com.whyc.pojo.db_ckpwrdev_data_rt.CKPowerDevModeparam;
import com.whyc.service.CKPowerDevAlmParamService;
import com.whyc.service.CKPowerDevModeparamService;
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("cKPowerDevModeparam")
public class CKPowerDevModeparamController {
    @Autowired
    private CKPowerDevModeparamService service;
 
    @ApiOperation("读取模块参数")
    @GetMapping("getModeParam")
    public Response getModeParam(){
        return service.getModeParam();
    }
 
 
    @ApiOperation("设置模块参数")
    @PostMapping("setModeParam")
    public Response setModeParam(@RequestBody CKPowerDevModeparam modeParam){
        return service.setModeParam(modeParam);
    }
}