修改日志
This commit is contained in:
@@ -22,7 +22,7 @@ import java.util.concurrent.ExecutionException;
|
|||||||
* 事件订阅管理
|
* 事件订阅管理
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/event")
|
@RequestMapping("/cloudEvents")
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class EGEventSubscriptionController {
|
public class EGEventSubscriptionController {
|
||||||
|
|
||||||
@@ -35,16 +35,16 @@ public class EGEventSubscriptionController {
|
|||||||
@GetMapping("/getBrand")
|
@GetMapping("/getBrand")
|
||||||
public void getBrand(){
|
public void getBrand(){
|
||||||
ResultDTO<List<CompetingBrrandsDTO>> result = CompetingBrandsClient.getBrand();
|
ResultDTO<List<CompetingBrrandsDTO>> result = CompetingBrandsClient.getBrand();
|
||||||
log.info("callback", JSON.toJSONString(result));
|
log.info("getBrand", JSON.toJSONString(result));
|
||||||
}
|
}
|
||||||
@GetMapping("/getSeriesByBrandId")
|
@GetMapping("/getSeriesByBrandId")
|
||||||
public void getSeriesByBrandId(String brandId){
|
public void getSeriesByBrandId(@RequestParam("brandId") String brandId){
|
||||||
ResultDTO<List<CompetingBrrandsDTO>> result = CompetingBrandsClient.getSeriesByBrandId(brandId);
|
ResultDTO<List<CompetingBrrandsDTO>> result = CompetingBrandsClient.getSeriesByBrandId(brandId);
|
||||||
log.info("callback", JSON.toJSONString(result));
|
log.info("getSeriesByBrandId", JSON.toJSONString(result));
|
||||||
}
|
}
|
||||||
@PostMapping("/callback")
|
@PostMapping("/callback")
|
||||||
public void callback(@RequestBody Object req){
|
public void callback(@RequestBody Object req){
|
||||||
log.info("callback", JSON.toJSONString(req));
|
log.info("EGEventSubscriptionControllerCallback", JSON.toJSONString(req));
|
||||||
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user