(model *team.Team, serviceNum int64, appNum int64)
| 41 | } |
| 42 | |
| 43 | func ToTeam(model *team.Team, serviceNum int64, appNum int64) *Team { |
| 44 | return &Team{ |
| 45 | Id: model.Id, |
| 46 | Name: model.Name, |
| 47 | Description: model.Description, |
| 48 | CreateTime: auto.TimeLabel(model.CreateTime), |
| 49 | UpdateTime: auto.TimeLabel(model.UpdateTime), |
| 50 | Creator: auto.UUID(model.Creator), |
| 51 | Updater: auto.UUID(model.Updater), |
| 52 | CanDelete: serviceNum == 0 && appNum == 0, |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | type ExportTeam struct { |
| 57 | Id string `json:"id"` |
nothing calls this directly
no outgoing calls
no test coverage detected