29 lines
604 B
Go
29 lines
604 B
Go
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)
|
|
}
|