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

Method createEntityHandler

service/subscribe/iml.go:270–287  ·  view source on GitHub ↗
(t *CreateApply)

Source from the content-addressed store, hash-verified

268}
269
270func (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
289func (i *imlSubscribeApplyService) updateHandler(e *subscribe.Apply, t *EditApply) {
290 if t.Approver != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected