package com.dy.pipIrrRemote.rtu;
|
|
import com.dy.common.mw.protocol.Data;
|
import com.dy.common.webUtil.BaseResponse;
|
import com.dy.common.webUtil.BaseResponseUtils;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.http.MediaType;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* @author ZhuBaoMin
|
* @date 2024-05-23 8:19
|
* @LastEditTime 2024-05-23 8:19
|
* @Description
|
*/
|
|
@Slf4j
|
@RestController
|
@RequestMapping(path="comRes")
|
public class CommandResultCtrl {
|
@PostMapping(path = "receive", consumes = MediaType.APPLICATION_JSON_VALUE)
|
public BaseResponse<String> receive(@RequestBody Data data) {
|
log.info(data.toString()) ;
|
return BaseResponseUtils.buildSuccess("ok");
|
}
|
}
|