(e *publish.Publish)
| 22 | } |
| 23 | |
| 24 | func 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 | |
| 41 | type Status struct { |
| 42 | Publish string |