diff --git a/go-apps/meep-app-enablement/server/capif-mgmt/model_capif_event_detail.go b/go-apps/meep-app-enablement/server/capif-mgmt/model_capif_event_detail.go new file mode 100644 index 0000000000000000000000000000000000000000..1663a9d27b5105cf06b341adbac1ed5360e77428 --- /dev/null +++ b/go-apps/meep-app-enablement/server/capif-mgmt/model_capif_event_detail.go @@ -0,0 +1,15 @@ +/* + * MEC service management realized by CAPIF APIs + * + * The ETSI MEC ISG MEC011 MEC Service Management realized by CAPIF APIs described using OpenAPI + * + * API version: 3.2.1 + * Contact: cti_support@etsi.org + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ +package server + +type CapifEventDetail struct { + ServiceApiDescriptions []ServiceApiDescription `json:"serviceApiDescriptions,omitempty"` + ApiIds []string `json:"apiIds,omitempty"` +} diff --git a/go-apps/meep-app-enablement/server/capif-mgmt/model_event_notification.go b/go-apps/meep-app-enablement/server/capif-mgmt/model_event_notification.go index e85d678ae8e75c1aec24cb060b2b2cf31787fa87..fdfa66df413c33b9d29c484ab03ee0bd92a0d2b3 100644 --- a/go-apps/meep-app-enablement/server/capif-mgmt/model_event_notification.go +++ b/go-apps/meep-app-enablement/server/capif-mgmt/model_event_notification.go @@ -14,4 +14,6 @@ type EventNotification struct { Events []CapifEvent `json:"events,omitempty"` // Identifier of the subscription resource to which the notification is related SubscriptionId string `json:"subscriptionId"` + // Detailed information for the event, conditionally included + EventDetail *CapifEventDetail `json:"eventDetail,omitempty"` } diff --git a/go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go b/go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go index 8083e4937fa462a7f2b5325932d67adc63f4c2cc..b675cd024091940e3899c595c2db103a62d8b120 100644 --- a/go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go +++ b/go-apps/meep-app-enablement/server/capif-mgmt/service-mgmt.go @@ -1852,7 +1852,8 @@ func checkSerAvailNotification(sInfo *ServiceInfo, mep string, changeType CapifE notif := &EventNotification{ SubscriptionId: sub.Cfg.Id, } - + event_detail := &CapifEventDetail{} + event_detail.ApiIds = append(event_detail.ApiIds, sInfo.SerInstanceId) // Set the event type based on changeType var eventType CapifEvent switch changeType { @@ -1863,7 +1864,7 @@ func checkSerAvailNotification(sInfo *ServiceInfo, mep string, changeType CapifE case "SERVICE_API_UPDATE": eventType = UPDATE default: - // Handle any default case or errors + continue } // If eventType is set, append it to the Events slice