fixed: plugin template api.go.template {{.Abbreviation}}.UpdatedBy rename info.UpdatedBy
This commit is contained in:
@@ -105,7 +105,7 @@ func (a *{{.Abbreviation}}) Update{{.StructName}}(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
{{- if .AutoCreateResource }}
|
{{- if .AutoCreateResource }}
|
||||||
{{.Abbreviation}}.UpdatedBy = utils.GetUserID(c)
|
info.UpdatedBy = utils.GetUserID(c)
|
||||||
{{- end }}
|
{{- end }}
|
||||||
err = service{{ .StructName }}.Update{{.StructName}}(info)
|
err = service{{ .StructName }}.Update{{.StructName}}(info)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user