datamodel done without validators

This commit is contained in:
2025-04-17 12:33:53 +02:00
parent 284a40fac2
commit 5337da219e
58 changed files with 575 additions and 227 deletions

28
wagfarm-api/logs/logs.go Normal file
View File

@@ -0,0 +1,28 @@
package logs
import (
"wagfarm-api/logs/base"
"wagfarm-api/logs/cropprotection"
"wagfarm-api/logs/fertilizing"
"wagfarm-api/logs/harvest"
"wagfarm-api/logs/seeding"
"github.com/gin-gonic/gin"
)
func RegisterModels() {
base.RegisterModels()
cropprotection.RegisterModels()
fertilizing.RegisterModels()
harvest.RegisterModels()
seeding.RegisterModels()
}
func RegisterRoutes(rg *gin.RouterGroup) {
group := rg.Group("/logs")
base.RegisterRoutes(group)
cropprotection.RegisterRoutes(group)
fertilizing.RegisterRoutes(group)
harvest.RegisterRoutes(group)
seeding.RegisterRoutes(group)
}