From 3edd64ff361c29929f1925e954eca173d65e65b7 Mon Sep 17 00:00:00 2001 From: "Frank.R.Wu" Date: Mon, 1 Nov 2021 17:30:01 +0800 Subject: [PATCH] feat: add isView in FunctionDesp add FunctionDesp.isView to tell contract manager if the function is view --- src/main/entry/org/bdware/sc/bean/FunctionDesp.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/entry/org/bdware/sc/bean/FunctionDesp.java b/src/main/entry/org/bdware/sc/bean/FunctionDesp.java index 4513cc9..d54807d 100644 --- a/src/main/entry/org/bdware/sc/bean/FunctionDesp.java +++ b/src/main/entry/org/bdware/sc/bean/FunctionDesp.java @@ -9,11 +9,13 @@ public class FunctionDesp implements Serializable { public List annotations; public String functionName; public RouteInfo routeInfo; + public boolean isView; - public FunctionDesp(String name, List anno, RouteInfo routeInfo) { - functionName = name; - annotations = anno; + public FunctionDesp(String name, List annos, RouteInfo routeInfo, boolean isView) { + this.functionName = name; + this.annotations = annos; this.routeInfo = routeInfo; + this.isView = isView; } public RouteInfo getRoute() {