feat: add isView in FunctionDesp

add FunctionDesp.isView to tell contract manager if the function is view
This commit is contained in:
Frank.R.Wu 2021-11-01 17:30:01 +08:00
parent 9fbca75af8
commit 3edd64ff36

View File

@ -9,11 +9,13 @@ public class FunctionDesp implements Serializable {
public List<AnnotationNode> annotations; public List<AnnotationNode> annotations;
public String functionName; public String functionName;
public RouteInfo routeInfo; public RouteInfo routeInfo;
public boolean isView;
public FunctionDesp(String name, List<AnnotationNode> anno, RouteInfo routeInfo) { public FunctionDesp(String name, List<AnnotationNode> annos, RouteInfo routeInfo, boolean isView) {
functionName = name; this.functionName = name;
annotations = anno; this.annotations = annos;
this.routeInfo = routeInfo; this.routeInfo = routeInfo;
this.isView = isView;
} }
public RouteInfo getRoute() { public RouteInfo getRoute() {