Add Plan page with day planner
This commit is contained in:
60
backend/dashapi/api_journal_service.go
Normal file
60
backend/dashapi/api_journal_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"
|
||||
)
|
||||
|
||||
// JournalApiService is a service that implements the logic for the JournalApiServicer
|
||||
// This service should implement the business logic for every endpoint for the JournalApi API.
|
||||
// Include any external packages or services that will be required by this service.
|
||||
type JournalApiService struct {
|
||||
}
|
||||
|
||||
// NewJournalApiService creates a default api service
|
||||
func NewJournalApiService() JournalApiServicer {
|
||||
return &JournalApiService{}
|
||||
}
|
||||
|
||||
// DeleteJournalEntryForDate -
|
||||
func (s *JournalApiService) DeleteJournalEntryForDate(ctx context.Context, date string) (ImplResponse, error) {
|
||||
// TODO - update DeleteJournalEntryForDate with the required logic for this service method.
|
||||
// Add api_journal_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("DeleteJournalEntryForDate method not implemented")
|
||||
}
|
||||
|
||||
// GetJournalEntryForDate -
|
||||
func (s *JournalApiService) GetJournalEntryForDate(ctx context.Context, date string) (ImplResponse, error) {
|
||||
// TODO - update GetJournalEntryForDate with the required logic for this service method.
|
||||
// Add api_journal_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, JournalEntry{}) or use other options such as http.Ok ...
|
||||
//return Response(200, JournalEntry{}), nil
|
||||
|
||||
return Response(http.StatusNotImplemented, nil), errors.New("GetJournalEntryForDate method not implemented")
|
||||
}
|
||||
|
||||
// WriteJournalEntry -
|
||||
func (s *JournalApiService) WriteJournalEntry(ctx context.Context, journalEntry JournalEntry) (ImplResponse, error) {
|
||||
// TODO - update WriteJournalEntry with the required logic for this service method.
|
||||
// Add api_journal_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("WriteJournalEntry method not implemented")
|
||||
}
|
||||
Reference in New Issue
Block a user