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

Function ToTeam

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

Source from the content-addressed store, hash-verified

41}
42
43func 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
56type ExportTeam struct {
57 Id string `json:"id"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected