(model *team.Team, serviceNum int64, appNum int64)
| 17 | } |
| 18 | |
| 19 | func ToItem(model *team.Team, serviceNum int64, appNum int64) *Item { |
| 20 | return &Item{ |
| 21 | Id: model.Id, |
| 22 | Name: model.Name, |
| 23 | Description: model.Description, |
| 24 | CreateTime: auto.TimeLabel(model.CreateTime), |
| 25 | UpdateTime: auto.TimeLabel(model.UpdateTime), |
| 26 | ServiceNum: serviceNum, |
| 27 | AppNum: appNum, |
| 28 | CanDelete: serviceNum == 0 && appNum == 0, |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | type Team struct { |
| 33 | Id string `json:"id"` |
nothing calls this directly
no outgoing calls
no test coverage detected