Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
corepkgv2
Commits
5df94ae3
Commit
5df94ae3
authored
6 years ago
by
Ajit Jagtap
Browse files
Options
Downloads
Patches
Plain Diff
added method to Setgjson in to service mapper.
parent
43904f94
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!23
Devbranch to Master
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
errormdl/errormdl.go
+1
-0
errormdl/errormdl.go
servicebuildermdl/servicebuildermdl.go
+6
-1
servicebuildermdl/servicebuildermdl.go
with
7 additions
and
1 deletion
errormdl/errormdl.go
+
1
−
0
View file @
5df94ae3
...
...
@@ -42,6 +42,7 @@ func CheckBool(orginalInput bool) bool {
return
!
orginalInput
}
return
orginalInput
}
func
CheckBool1
(
orginalInput
bool
)
bool
{
...
...
This diff is collapsed.
Click to expand it.
servicebuildermdl/servicebuildermdl.go
+
6
−
1
View file @
5df94ae3
...
...
@@ -50,7 +50,7 @@ func (ab *AbstractBusinessLogicHolder) GetDataInt(key string) (int, bool) {
}
// GetBool will give you int
func
(
ab
*
AbstractBusinessLogicHolder
)
GetResult
(
key
string
)
(
*
gjson
.
Result
,
bool
)
{
func
(
ab
*
AbstractBusinessLogicHolder
)
GetResult
set
(
key
string
)
(
*
gjson
.
Result
,
bool
)
{
//check in map
temp
,
found
:=
ab
.
ServiceData
[
key
]
if
errormdl
.
CheckBool
(
!
found
)
{
...
...
@@ -97,6 +97,11 @@ func (ab *AbstractBusinessLogicHolder) Build() {
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
func
(
ab
*
AbstractBusinessLogicHolder
)
GetFinalData
()
*
interface
{}
{
a
:=
ab
.
ServiceData
[
"finaldata"
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets