mirror of
https://gitee.com/BDWare/common
synced 2025-01-10 09:54:13 +00:00
feat: support @RouteInfo byFunc
This commit is contained in:
parent
8bf4b1c57d
commit
7a9ce393cd
@ -3,5 +3,6 @@ package org.bdware.sc.bean;
|
|||||||
public enum DefaultRouteRule {
|
public enum DefaultRouteRule {
|
||||||
byRequester,
|
byRequester,
|
||||||
byArgHash,
|
byArgHash,
|
||||||
byTarget;
|
byTarget,
|
||||||
|
byFunc;
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,8 @@ import java.io.Serializable;
|
|||||||
public class RouteInfo implements Serializable {
|
public class RouteInfo implements Serializable {
|
||||||
public DefaultRouteRule useDefault;
|
public DefaultRouteRule useDefault;
|
||||||
|
|
||||||
|
public String funcName;
|
||||||
|
|
||||||
public static RouteInfo create(AnnotationNode annotationNode, ContractNode contractNode) {
|
public static RouteInfo create(AnnotationNode annotationNode, ContractNode contractNode) {
|
||||||
RouteInfo info = new RouteInfo();
|
RouteInfo info = new RouteInfo();
|
||||||
info.useDefault = null;
|
info.useDefault = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user