V2
This commit is contained in:
60
backend/dashapi/api_inbox_service.go
Normal file
60
backend/dashapi/api_inbox_service.go
Normal file
@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Dash API
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* API version: 0.1
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
package dashapi
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
"errors"
|
||||
)
|
||||
|
||||
// InboxApiService is a service that implements the logic for the InboxApiServicer
|
||||
// This service should implement the business logic for every endpoint for the InboxApi API.
|
||||
// Include any external packages or services that will be required by this service.
|
||||
type InboxApiService struct {
|
||||
}
|
||||
|
||||
// NewInboxApiService creates a default api service
|
||||
func NewInboxApiService() InboxApiServicer {
|
||||
return &InboxApiService{}
|
||||
}
|
||||
|
||||
// AddInboxItem -
|
||||
func (s *InboxApiService) AddInboxItem(ctx context.Context, inboxItem InboxItem) (ImplResponse, error) {
|
||||
// TODO - update AddInboxItem with the required logic for this service method.
|
||||
// Add api_inbox_service.go to the .openapi-generator-ignore to avoid overwriting this service implementation when updating open api generation.
|
||||
|
||||
//TODO: Uncomment the next line to return response Response(200, {}) or use other options such as http.Ok ...
|
||||
//return Response(200, nil),nil
|
||||
|
||||
return Response(http.StatusNotImplemented, nil), errors.New("AddInboxItem method not implemented")
|
||||
}
|
||||
|
||||
// DeleteInboxItem -
|
||||
func (s *InboxApiService) DeleteInboxItem(ctx context.Context, item int32) (ImplResponse, error) {
|
||||
// TODO - update DeleteInboxItem with the required logic for this service method.
|
||||
// Add api_inbox_service.go to the .openapi-generator-ignore to avoid overwriting this service implementation when updating open api generation.
|
||||
|
||||
//TODO: Uncomment the next line to return response Response(200, {}) or use other options such as http.Ok ...
|
||||
//return Response(200, nil),nil
|
||||
|
||||
return Response(http.StatusNotImplemented, nil), errors.New("DeleteInboxItem method not implemented")
|
||||
}
|
||||
|
||||
// GetInboxItems -
|
||||
func (s *InboxApiService) GetInboxItems(ctx context.Context) (ImplResponse, error) {
|
||||
// TODO - update GetInboxItems with the required logic for this service method.
|
||||
// Add api_inbox_service.go to the .openapi-generator-ignore to avoid overwriting this service implementation when updating open api generation.
|
||||
|
||||
//TODO: Uncomment the next line to return response Response(200, []InboxItem{}) or use other options such as http.Ok ...
|
||||
//return Response(200, []InboxItem{}), nil
|
||||
|
||||
return Response(http.StatusNotImplemented, nil), errors.New("GetInboxItems method not implemented")
|
||||
}
|
||||
Reference in New Issue
Block a user