Commit 74e94eef authored by 赵啸非's avatar 赵啸非

修改同步用户

parent f5a99e5d
package com.mortals.xhx.busiz.web;
import com.alibaba.fastjson.JSONObject;
import com.mortals.framework.annotation.UnAuth;
import com.mortals.framework.common.Rest;
import com.mortals.xhx.common.pdu.device.DeviceReq;
import lombok.extern.slf4j.Slf4j;
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;
@RestController
@Slf4j
@RequestMapping("/api/device")
public class DeviceCallbackController {
@PostMapping("callback")
@UnAuth
public Rest<String> callback(@RequestBody DeviceReq deviceReq) {
log.info("【设备通知数据】【请求体】--> " + JSONObject.toJSONString(deviceReq));
return Rest.ok();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment