feat: dodata podrška za servise
Dodana osnovna funkcionalnost za upravljanje servisima: - Novi model (`internal/model/service.go`) - SQLite repository (`internal/db/sqlite/service.go`) - Handler (`internal/handler/service.go`) - Tri nove stranice (lista, detalji, forma) Izmenjeni: - main.go - repository.go - utils.go - handler.go
This commit is contained in:
@@ -54,3 +54,13 @@ type KlijentRepository interface {
|
||||
Izmeni(ctx context.Context, k *model.Klijent) error
|
||||
Obrisi(ctx context.Context, id int64) error
|
||||
}
|
||||
|
||||
// ServisRepository definiše operacije nad servisnim nalozima
|
||||
type ServisRepository interface {
|
||||
Lista(ctx context.Context, pretraga, status string) ([]model.ServisniNalogSaKlijentom, error)
|
||||
DohvatiID(ctx context.Context, id int64) (*model.ServisniNalog, error)
|
||||
Kreiraj(ctx context.Context, n *model.ServisniNalog) (int64, error)
|
||||
Izmeni(ctx context.Context, n *model.ServisniNalog) error
|
||||
Obrisi(ctx context.Context, id int64) error
|
||||
SledeciBroj(ctx context.Context) (string, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user