This commit is contained in:
che
2026-07-11 11:44:55 +05:00
commit 111cadd184
26 changed files with 4564 additions and 0 deletions
+30
View File
@@ -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,
}
}