mirror of
https://gitee.com/BDWare/common
synced 2025-01-25 01:04:16 +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'
|
||||
}
|
||||
group = "org.bdware.sc"
|
||||
version = "1.5.6"
|
||||
version = "1.5.8"
|
||||
tasks.processResources.setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
|
||||
|
||||
task copyLibs(type: Copy) {
|
||||
|
@ -7,12 +7,14 @@ import org.bdware.sc.util.JsonUtil;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class JoinInfo implements Serializable {
|
||||
public String joinRule;
|
||||
public DefaultJoinRule useDefault;
|
||||
public String joinFuncName;
|
||||
public int joinCount;
|
||||
public String joinCountFuncName;
|
||||
|
||||
public static JoinInfo create(AnnotationNode annotationNode, ContractNode contractNode) {
|
||||
JoinInfo info = new JoinInfo();
|
||||
info.joinRule = null;
|
||||
info.useDefault = null;
|
||||
if (annotationNode.getArgs().size() == 1) {
|
||||
String str = annotationNode.getArgs().get(0);
|
||||
info = JsonUtil.fromJson(str, JoinInfo.class);
|
||||
|
@ -8,7 +8,8 @@ import java.io.Serializable;
|
||||
|
||||
public class RouteInfo implements Serializable {
|
||||
public DefaultRouteRule useDefault;
|
||||
|
||||
// The signature of RouteFunction is
|
||||
// function myFunc(requester, sourceArg)
|
||||
public String funcName;
|
||||
|
||||
public static RouteInfo create(AnnotationNode annotationNode, ContractNode contractNode) {
|
||||
|
Loading…
Reference in New Issue
Block a user