(t *CreateApply)
| 268 | } |
| 269 | |
| 270 | func (i *imlSubscribeApplyService) createEntityHandler(t *CreateApply) *subscribe.Apply { |
| 271 | now := time.Now() |
| 272 | return &subscribe.Apply{ |
| 273 | Uuid: t.Uuid, |
| 274 | Name: t.Uuid, |
| 275 | Service: t.Service, |
| 276 | Team: t.Team, |
| 277 | Application: t.Application, |
| 278 | ApplyTeam: t.ApplyTeam, |
| 279 | Applier: t.Applier, |
| 280 | ApplyAt: now, |
| 281 | Approver: "", |
| 282 | ApproveAt: now, |
| 283 | Status: t.Status, |
| 284 | Opinion: "", |
| 285 | Reason: t.Reason, |
| 286 | } |
| 287 | } |
| 288 | |
| 289 | func (i *imlSubscribeApplyService) updateHandler(e *subscribe.Apply, t *EditApply) { |
| 290 | if t.Approver != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected