(i *CreateDynamicModule)
| 50 | return []map[string]interface{}{{"uuid": i.Id}} |
| 51 | } |
| 52 | func 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 | |
| 69 | func updateHandler(e *dynamic_module.DynamicModule, i *EditDynamicModule) { |
| 70 | if i.Name != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected