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

Function createEntityHandler

service/dynamic-module/iml.go:52–67  ·  view source on GitHub ↗
(i *CreateDynamicModule)

Source from the content-addressed store, hash-verified

50 return []map[string]interface{}{{"uuid": i.Id}}
51}
52func createEntityHandler(i *CreateDynamicModule) *dynamic_module.DynamicModule {
53 now := time.Now()
54 return &dynamic_module.DynamicModule{
55 UUID: i.Id,
56 Name: i.Name,
57 Driver: i.Driver,
58 Module: i.Module,
59 Version: i.Version,
60 Description: i.Description,
61 Config: i.Config,
62 Profession: i.Profession,
63 Skill: i.Skill,
64 CreateAt: now,
65 UpdateAt: now,
66 }
67}
68
69func updateHandler(e *dynamic_module.DynamicModule, i *EditDynamicModule) {
70 if i.Name != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected