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

Function FromEntity

service/publish/model.go:24–39  ·  view source on GitHub ↗
(e *publish.Publish)

Source from the content-addressed store, hash-verified

22}
23
24func FromEntity(e *publish.Publish) *Publish {
25 return &Publish{
26 Id: e.UUID,
27 Service: e.Service,
28 Release: e.Release,
29 Previous: e.Previous,
30 Version: e.Version,
31 ApplyTime: e.ApplyTime,
32 Applicant: e.Applicant,
33 Remark: e.Remark,
34 ApproveTime: e.ApproveTime,
35 Approver: e.Approver,
36 Comments: e.Comments,
37 Status: StatusType(e.Status),
38 }
39}
40
41type Status struct {
42 Publish string

Callers 1

GetMethod · 0.70

Calls 1

StatusTypeTypeAlias · 0.70

Tested by

no test coverage detected