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