Skip to content

Commit 8760bd1

Browse files
committed
fix(swag): fixed swagger generation failure due to package alias
1 parent 56a39ed commit 8760bd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/dashboard/handler/obcluster_handler.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
crypto "github.com/oceanbase/ob-operator/pkg/crypto"
3030
httpErr "github.com/oceanbase/ob-operator/pkg/errors"
3131
"github.com/oceanbase/ob-operator/pkg/k8s/client"
32-
models "github.com/oceanbase/ob-operator/pkg/oceanbase-sdk/model"
32+
"github.com/oceanbase/ob-operator/pkg/oceanbase-sdk/model"
3333
)
3434

3535
// @ID GetOBClusterStatistic
@@ -483,12 +483,12 @@ func DeleteOBServers(c *gin.Context) (*response.OBCluster, error) {
483483
// @Produce application/json
484484
// @Param namespace path string true "namespace of obcluster resource"
485485
// @Param name path string true "name of obcluster resource"
486-
// @Success 200 object response.APIResponse{data=[]models.Parameter}
486+
// @Success 200 object response.APIResponse{data=[]model.Parameter}
487487
// @Failure 400 object response.APIResponse
488488
// @Failure 401 object response.APIResponse
489489
// @Failure 500 object response.APIResponse
490490
// @Router /api/v1/obclusters/namespace/{namespace}/name/{name}/parameters [GET]
491-
func ListOBClusterParameters(c *gin.Context) ([]*models.Parameter, error) {
491+
func ListOBClusterParameters(c *gin.Context) ([]*model.Parameter, error) {
492492
nn := &param.K8sObjectIdentity{}
493493
err := c.BindUri(nn)
494494
if err != nil {

0 commit comments

Comments
 (0)