Skip to content

Commit

Permalink
Fix error by golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ShouheiNishi committed Nov 28, 2023
1 parent 329f697 commit a95911c
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions internal/sbi/producer/ue_authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ import (
)

func NewServerAusfAuthentication() ausf_authentication.ServerInterface {
return ausf_authentication.NewStrictHandler(ausfAuthenticationStrictServerInterface{}, []strictgin.StrictGinMiddlewareFunc{middleware.GinStrictServerMiddleware})
return ausf_authentication.NewStrictHandler(ausfAuthenticationStrictServerInterface{},
[]strictgin.StrictGinMiddlewareFunc{middleware.GinStrictServerMiddleware})
}

// s ausfAuthenticationStrictServerInterface ausf_authentication.StrictServerInterface
Expand All @@ -41,15 +42,21 @@ func (s ausfAuthenticationStrictServerInterface) PostRgAuthentications(ctx conte
request ausf_authentication.PostRgAuthenticationsRequestObject,
) (ausf_authentication.PostRgAuthenticationsResponseObject, error) {
pd := problem.NotImplemented()
return ausf_authentication.PostRgAuthenticationsdefaultApplicationProblemPlusJSONResponse{StatusCode: pd.Status, Body: pd}, nil
return ausf_authentication.PostRgAuthenticationsdefaultApplicationProblemPlusJSONResponse{
StatusCode: pd.Status,
Body: pd,
}, nil
}

// (POST /ue-authentications/deregister)
func (s ausfAuthenticationStrictServerInterface) PostUeAuthenticationsDeregister(ctx context.Context,
request ausf_authentication.PostUeAuthenticationsDeregisterRequestObject,
) (ausf_authentication.PostUeAuthenticationsDeregisterResponseObject, error) {
pd := problem.NotImplemented()
return ausf_authentication.PostUeAuthenticationsDeregisterdefaultApplicationProblemPlusJSONResponse{StatusCode: pd.Status, Body: pd}, nil
return ausf_authentication.PostUeAuthenticationsDeregisterdefaultApplicationProblemPlusJSONResponse{
StatusCode: pd.Status,
Body: pd,
}, nil
}

// Deletes the authentication result in the UDM
Expand All @@ -58,7 +65,10 @@ func (s ausfAuthenticationStrictServerInterface) Delete5gAkaAuthenticationResult
request ausf_authentication.Delete5gAkaAuthenticationResultRequestObject,
) (ausf_authentication.Delete5gAkaAuthenticationResultResponseObject, error) {
pd := problem.NotImplemented()
return ausf_authentication.Delete5gAkaAuthenticationResultdefaultApplicationProblemPlusJSONResponse{StatusCode: pd.Status, Body: pd}, nil
return ausf_authentication.Delete5gAkaAuthenticationResultdefaultApplicationProblemPlusJSONResponse{
StatusCode: pd.Status,
Body: pd,
}, nil
}

// Deletes the authentication result in the UDM
Expand All @@ -67,7 +77,10 @@ func (s ausfAuthenticationStrictServerInterface) DeleteEapAuthenticationResult(c
request ausf_authentication.DeleteEapAuthenticationResultRequestObject,
) (ausf_authentication.DeleteEapAuthenticationResultResponseObject, error) {
pd := problem.NotImplemented()
return ausf_authentication.DeleteEapAuthenticationResultdefaultApplicationProblemPlusJSONResponse{StatusCode: pd.Status, Body: pd}, nil
return ausf_authentication.DeleteEapAuthenticationResultdefaultApplicationProblemPlusJSONResponse{
StatusCode: pd.Status,
Body: pd,
}, nil
}

// // (POST /ue-authentications)
Expand Down

0 comments on commit a95911c

Please sign in to comment.