Initial commit
This commit is contained in:
26
hw12_13_14_15_calendar/internal/app/app.go
Normal file
26
hw12_13_14_15_calendar/internal/app/app.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
type App struct { // TODO
|
||||
}
|
||||
|
||||
type Logger interface { // TODO
|
||||
}
|
||||
|
||||
type Storage interface { // TODO
|
||||
}
|
||||
|
||||
func New(logger Logger, storage Storage) *App {
|
||||
return &App{}
|
||||
}
|
||||
|
||||
func (a *App) CreateEvent(ctx context.Context, id, title string) error {
|
||||
// TODO
|
||||
return nil
|
||||
// return a.storage.CreateEvent(storage.Event{ID: id, Title: title})
|
||||
}
|
||||
|
||||
// TODO
|
||||
Reference in New Issue
Block a user