final project structure
This commit is contained in:
5
wagfarm-api/taxonomy/unit/model.go
Normal file
5
wagfarm-api/taxonomy/unit/model.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package unit
|
||||
|
||||
import "wagfarm-api/taxonomy/base"
|
||||
|
||||
type Unit struct{ base.Taxonomy }
|
||||
11
wagfarm-api/taxonomy/unit/route.go
Normal file
11
wagfarm-api/taxonomy/unit/route.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package unit
|
||||
|
||||
import (
|
||||
"wagfarm-api/generic"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func RegisterRoutes(rg *gin.RouterGroup) {
|
||||
generic.RegisterCRUDRoutes(rg.Group("/unit"), generic.DefaultCRUDController[Unit]())
|
||||
}
|
||||
Reference in New Issue
Block a user