first
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package control_case
|
||||
|
||||
import (
|
||||
"github.com/che4web/go4rest"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type ControlCaseController struct {
|
||||
*go4rest.ViewSet[ControlCase]
|
||||
db *gorm.DB
|
||||
}
|
||||
|
||||
func NewControlCaseController(db *gorm.DB) *ControlCaseController {
|
||||
return &ControlCaseController{
|
||||
ViewSet: go4rest.NewViewSet[ControlCase](db),
|
||||
db: db,
|
||||
}
|
||||
}
|
||||
|
||||
type ParamsController struct {
|
||||
*go4rest.ViewSet[Params]
|
||||
db *gorm.DB
|
||||
}
|
||||
|
||||
func NewParamsController(db *gorm.DB) *ParamsController {
|
||||
return &ParamsController{
|
||||
ViewSet: go4rest.NewViewSet[Params](db),
|
||||
db: db,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user