mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-06 02:49:57 +08:00
grpc 增加连接过程
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* 抖音关注:程序员三丙
|
||||
* 知识星球:https://t.zsxq.com/j9b21
|
||||
*/
|
||||
package sanbing.jcpp.app.adapter;
|
||||
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import sanbing.jcpp.app.service.PileProtocolService;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @author baigod
|
||||
*/
|
||||
@RestController
|
||||
public class TestController {
|
||||
|
||||
@Resource
|
||||
private PileProtocolService pileProtocolService;
|
||||
|
||||
@GetMapping("/api/startCharge")
|
||||
public ResponseEntity<String> startCharge() {
|
||||
|
||||
pileProtocolService.startCharge("20231212000010", "01", new BigDecimal("50"), "12345678901234567890");
|
||||
|
||||
return ResponseEntity.ok("success");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user