optimize test code format for check style

pull/374/head
wulingxiao 3 years ago
parent 7dd27c1fea
commit 6df160e1af

@ -43,6 +43,9 @@ public class RouterCalleeController {
/** /**
* Get information of callee. * Get information of callee.
*
* @param name name
* @param user user
* @return information of callee * @return information of callee
*/ */
@PostMapping("/info") @PostMapping("/info")

@ -44,6 +44,9 @@ public class RouterCalleeController {
/** /**
* Get information of callee. * Get information of callee.
*
* @param name name
* @param user user
* @return information of callee * @return information of callee
*/ */
@PostMapping("/info") @PostMapping("/info")

@ -18,6 +18,7 @@
package com.tencent.cloud.polaris.router.example; package com.tencent.cloud.polaris.router.example;
import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@ -27,12 +28,12 @@ import feign.RequestTemplate;
import org.springframework.http.HttpRequest; import org.springframework.http.HttpRequest;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.web.server.ServerWebExchange;
/** /**
* Customize the business tag information obtained from the request.
* *
* Customize the business tag information obtained from the request * @author lepdou 2022-05-12
*
*@author lepdou 2022-05-12
*/ */
@Component @Component
public class CustomRouterLabelResolver implements RouterLabelResolver { public class CustomRouterLabelResolver implements RouterLabelResolver {
@ -58,6 +59,10 @@ public class CustomRouterLabelResolver implements RouterLabelResolver {
return labels; return labels;
} }
@Override
public Map<String, String> resolve(ServerWebExchange exchange) {
return Collections.emptyMap();
}
@Override @Override
public int getOrder() { public int getOrder() {

@ -42,6 +42,8 @@ public class RouterCallerController {
/** /**
* Get info of two value. * Get info of two value.
*
* @param name name
* @return info * @return info
*/ */
@GetMapping("/feign") @GetMapping("/feign")
@ -54,6 +56,8 @@ public class RouterCallerController {
/** /**
* Get information of callee. * Get information of callee.
*
* @param name name
* @return information of callee * @return information of callee
*/ */
@GetMapping("/rest") @GetMapping("/rest")
@ -67,6 +71,7 @@ public class RouterCallerController {
/** /**
* health check. * health check.
*
* @return health check info * @return health check info
*/ */
@GetMapping("/healthCheck") @GetMapping("/healthCheck")

@ -37,6 +37,8 @@ public class GatewayController {
/** /**
* Get information of callee. * Get information of callee.
*
* @param userId userId
* @return information of callee * @return information of callee
*/ */
@GetMapping("/route_rule") @GetMapping("/route_rule")

Loading…
Cancel
Save