mirror of
https://gitee.com/BDWare/common
synced 2025-01-26 09:44:12 +00:00
update routeInfo and joinInfo
This commit is contained in:
parent
f74c4f040f
commit
f2f1bae2ba
@ -52,7 +52,7 @@ dependencies {
|
|||||||
testImplementation 'junit:junit:4.13.2'
|
testImplementation 'junit:junit:4.13.2'
|
||||||
}
|
}
|
||||||
group = "org.bdware.sc"
|
group = "org.bdware.sc"
|
||||||
version = "1.5.6"
|
version = "1.5.8"
|
||||||
tasks.processResources.setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
|
tasks.processResources.setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
|
||||||
|
|
||||||
task copyLibs(type: Copy) {
|
task copyLibs(type: Copy) {
|
||||||
|
@ -7,12 +7,14 @@ import org.bdware.sc.util.JsonUtil;
|
|||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
public class JoinInfo implements Serializable {
|
public class JoinInfo implements Serializable {
|
||||||
public String joinRule;
|
public DefaultJoinRule useDefault;
|
||||||
|
public String joinFuncName;
|
||||||
public int joinCount;
|
public int joinCount;
|
||||||
|
public String joinCountFuncName;
|
||||||
|
|
||||||
public static JoinInfo create(AnnotationNode annotationNode, ContractNode contractNode) {
|
public static JoinInfo create(AnnotationNode annotationNode, ContractNode contractNode) {
|
||||||
JoinInfo info = new JoinInfo();
|
JoinInfo info = new JoinInfo();
|
||||||
info.joinRule = null;
|
info.useDefault = null;
|
||||||
if (annotationNode.getArgs().size() == 1) {
|
if (annotationNode.getArgs().size() == 1) {
|
||||||
String str = annotationNode.getArgs().get(0);
|
String str = annotationNode.getArgs().get(0);
|
||||||
info = JsonUtil.fromJson(str, JoinInfo.class);
|
info = JsonUtil.fromJson(str, JoinInfo.class);
|
||||||
|
@ -8,7 +8,8 @@ import java.io.Serializable;
|
|||||||
|
|
||||||
public class RouteInfo implements Serializable {
|
public class RouteInfo implements Serializable {
|
||||||
public DefaultRouteRule useDefault;
|
public DefaultRouteRule useDefault;
|
||||||
|
// The signature of RouteFunction is
|
||||||
|
// function myFunc(requester, sourceArg)
|
||||||
public String funcName;
|
public String funcName;
|
||||||
|
|
||||||
public static RouteInfo create(AnnotationNode annotationNode, ContractNode contractNode) {
|
public static RouteInfo create(AnnotationNode annotationNode, ContractNode contractNode) {
|
||||||
|
Loading…
Reference in New Issue
Block a user