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

Method createEntityHandler

service/subscribe/iml.go:186–197  ·  view source on GitHub ↗
(t *CreateSubscribe)

Source from the content-addressed store, hash-verified

184 return []map[string]interface{}{{"uuid": t.Uuid}}
185}
186func (i *imlSubscribeService) createEntityHandler(t *CreateSubscribe) *subscribe.Subscribe {
187 return &subscribe.Subscribe{
188 UUID: t.Uuid,
189 Name: t.Uuid,
190 Application: t.Application,
191 Service: t.Service,
192 From: t.From,
193 Applier: t.Applier,
194 CreateAt: time.Now(),
195 ApplyStatus: t.ApplyStatus,
196 }
197}
198
199func (i *imlSubscribeService) updateHandler(e *subscribe.Subscribe, t *UpdateSubscribe) {
200 if t.ApplyStatus != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected