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