CustomsLockTestController.java
1.2 KB
package com.sy.controller;
import com.alibaba.fastjson.JSON;
import com.sy.model.GatherInfo;
import com.sy.model.LockFeedBack;
import com.sy.model.LockFeignResponse;
import com.sy.model.NoticeLock;
import com.sy.response.ResultJson;
import com.sy.service.CommandLogService;
import com.sy.service.CustomsLockService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
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
public class CustomsLockTestController {
@PostMapping("/bizApi/noticeLock")
public LockFeignResponse lockTest(@RequestBody NoticeLock noticeLock){
log.info("测试接口接收到关锁通知施解封:{}", JSON.toJSONString(noticeLock));
LockFeignResponse lockFeignResponse = new LockFeignResponse();
lockFeignResponse.success=true;
lockFeignResponse.code=0;
lockFeignResponse.message="关锁通知测试接收成功";
return lockFeignResponse;
}
}