whycxzp
2025-03-27 fe09517300727fd547e9926c9ba407386715435d
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
39
40
41
42
43
44
45
46
47
package com.whyc.controller;
 
import com.whyc.dto.FBS9100_ComBase;
import com.whyc.dto.Response;
import com.whyc.pojo.DfxtBmsParam;
import com.whyc.service.DfxtBmsParamService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
@Api(tags = "东峰设备")
@RequestMapping("dfxtBmsParam")
public class DfxtBmsParamController {
 
    @Autowired
    private DfxtBmsParamService service;
 
    @ApiOperation("启动放电")
    @PostMapping("startDischarge")
    public Response startDischarge(@RequestParam Integer devId){
        return service.operate(FBS9100_ComBase.CMD_StartDischarge_DF,devId);
    }
 
    @ApiOperation("停止放电")
    @PostMapping("stopDischarge")
    public Response stopDischarge(@RequestParam Integer devId){
        return service.operate(FBS9100_ComBase.CMD_StopDischarge_DF,devId);
    }
 
    @ApiOperation("启动充电")
    @PostMapping("startCharge")
    public Response startCharge(@RequestParam Integer devId){
        return service.operate(FBS9100_ComBase.CMD_StartChrCharge_DF,devId);
    }
 
    @ApiOperation("停止充电")
    @PostMapping("stopCharge")
    public Response stopCharge(@RequestParam Integer devId){
        return service.operate(FBS9100_ComBase.CMD_StopChrCharge_DF,devId);
    }
 
}