WIP: Export Kontor DB
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s

This commit is contained in:
Thomas Peetz
2026-09-30 18:55:59 +02:00
parent 914e1214de
commit f5abb44466
52 changed files with 1458 additions and 146 deletions
+7
View File
@@ -2,10 +2,12 @@ package handlers
import (
"kontor-api-gin/internal/models"
"kontor-api-gin/internal/repository"
"kontor-api-gin/internal/service"
"net/http"
"github.com/gin-gonic/gin"
"gorm.io/gorm"
)
type PositionHandler struct {
@@ -31,3 +33,8 @@ func (handler *PositionHandler) Get(c *gin.Context) {
}
c.JSON(http.StatusOK, position)
}
func NewPositionHandler(db *gorm.DB) *PositionHandler {
handler := &PositionHandler{Service: service.NewPositionService(repository.NewPositionRepository(db))}
return handler
}