|
@@ -32,6 +32,7 @@ func init() {
|
|
user := values.Get("$user.ref").(*models.UserReference)
|
|
user := values.Get("$user.ref").(*models.UserReference)
|
|
entity.UpdatedBy = user
|
|
entity.UpdatedBy = user
|
|
values.Set("entity", entity)
|
|
values.Set("entity", entity)
|
|
|
|
+ {{if .entityAlias }} values.Set("{{.entityAlias}}", entity) {{end}}
|
|
|
|
|
|
{{if .preconditions}}
|
|
{{if .preconditions}}
|
|
if _, err = executeAction(
|
|
if _, err = executeAction(
|
|
@@ -118,6 +119,7 @@ var (
|
|
"hasUpdateRelation": SR.Has(method.Entity),
|
|
"hasUpdateRelation": SR.Has(method.Entity),
|
|
"preconditions": parseMethodActions(method.Preconditions),
|
|
"preconditions": parseMethodActions(method.Preconditions),
|
|
"beforeResponse": parseMethodActions(method.BeforeResponse),
|
|
"beforeResponse": parseMethodActions(method.BeforeResponse),
|
|
|
|
+ "entityAlias": getCustom(method.Custom, "go.entity.alias"),
|
|
}
|
|
}
|
|
)
|
|
)
|
|
|
|
|