Commit 5df94ae3 authored by Ajit Jagtap's avatar Ajit Jagtap
Browse files

added method to Setgjson in to service mapper.

parent 43904f94
1 merge request!23Devbranch to Master
Showing with 7 additions and 1 deletion
...@@ -42,6 +42,7 @@ func CheckBool(orginalInput bool) bool { ...@@ -42,6 +42,7 @@ func CheckBool(orginalInput bool) bool {
return !orginalInput return !orginalInput
} }
return orginalInput return orginalInput
} }
func CheckBool1(orginalInput bool) bool { func CheckBool1(orginalInput bool) bool {
......
...@@ -50,7 +50,7 @@ func (ab *AbstractBusinessLogicHolder) GetDataInt(key string) (int, bool) { ...@@ -50,7 +50,7 @@ func (ab *AbstractBusinessLogicHolder) GetDataInt(key string) (int, bool) {
} }
// GetBool will give you int // GetBool will give you int
func (ab *AbstractBusinessLogicHolder) GetResult(key string) (*gjson.Result, bool) { func (ab *AbstractBusinessLogicHolder) GetResultset(key string) (*gjson.Result, bool) {
//check in map //check in map
temp, found := ab.ServiceData[key] temp, found := ab.ServiceData[key]
if errormdl.CheckBool(!found) { if errormdl.CheckBool(!found) {
...@@ -97,6 +97,11 @@ func (ab *AbstractBusinessLogicHolder) Build() { ...@@ -97,6 +97,11 @@ func (ab *AbstractBusinessLogicHolder) Build() {
ab.ServiceData = make(map[string]interface{}) ab.ServiceData = make(map[string]interface{})
} }
// SetGJSON will return map data with finaldata key
func (ab *AbstractBusinessLogicHolder) SetResultset(key string, obj *gjson.Result) {
ab.ServiceData[key] = obj
}
// GetFinalData will return map data with finaldata key // GetFinalData will return map data with finaldata key
func (ab *AbstractBusinessLogicHolder) GetFinalData() *interface{} { func (ab *AbstractBusinessLogicHolder) GetFinalData() *interface{} {
a := ab.ServiceData["finaldata"] a := ab.ServiceData["finaldata"]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment