MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / updateHandler

Function updateHandler

service/dynamic-module/iml.go:69–83  ·  view source on GitHub ↗
(e *dynamic_module.DynamicModule, i *EditDynamicModule)

Source from the content-addressed store, hash-verified

67}
68
69func updateHandler(e *dynamic_module.DynamicModule, i *EditDynamicModule) {
70 if i.Name != nil {
71 e.Name = *i.Name
72 }
73 if i.Description != nil {
74 e.Description = *i.Description
75 }
76 if i.Config != nil {
77 e.Config = *i.Config
78 }
79 if i.Version != nil {
80 e.Version = *i.Version
81 }
82 e.UpdateAt = time.Now()
83}
84
85var _ IDynamicModulePublishService = &imlDynamicModulePublishService{}
86

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected