refactor: removed unnecessary code

This commit is contained in:
Marvin Zhang
2024-07-11 12:45:20 +08:00
parent 13596436cd
commit f2f298d8f8
69 changed files with 469 additions and 1142 deletions

View File

@@ -2,7 +2,7 @@ package controllers_test
import (
"github.com/crawlab-team/crawlab/core/controllers"
"github.com/crawlab-team/crawlab/core/models/models"
"github.com/crawlab-team/crawlab/core/models/models/v2"
"github.com/gin-gonic/gin"
"github.com/stretchr/testify/assert"
"testing"
@@ -28,7 +28,7 @@ func TestRouterGroups(t *testing.T) {
func TestRegisterController_Routes(t *testing.T) {
router := gin.Default()
groups := controllers.NewRouterGroups(router)
ctr := controllers.NewControllerV2[models.TestModel]()
ctr := controllers.NewControllerV2[models.TestModelV2]()
basePath := "/testmodels"
controllers.RegisterController(groups.AuthGroup, basePath, ctr)