(i *CreateTeam)
| 64 | return []map[string]interface{}{{"uuid": i.Id}, {"name": i.Name}} |
| 65 | } |
| 66 | func createEntityHandler(i *CreateTeam) *team.Team { |
| 67 | return &team.Team{ |
| 68 | Id: 0, |
| 69 | UUID: i.Id, |
| 70 | Name: i.Name, |
| 71 | Description: i.Description, |
| 72 | CreateAt: time.Now(), |
| 73 | UpdateAt: time.Now(), |
| 74 | } |
| 75 | } |
| 76 | func updateHandler(e *team.Team, i *EditTeam) { |
| 77 | if i.Name != nil { |
| 78 | e.Name = *i.Name |
nothing calls this directly
no outgoing calls
no test coverage detected