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

Function ToItem

module/team/dto/output.go:19–30  ·  view source on GitHub ↗
(model *team.Team, serviceNum int64, appNum int64)

Source from the content-addressed store, hash-verified

17}
18
19func 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
32type Team struct {
33 Id string `json:"id"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected