Skip to content

Commit

Permalink
fix: lint problems in dashboard (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
lizzy-0323 authored Sep 26, 2024
1 parent 9dc3e92 commit 0c2fb7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions internal/dashboard/handler/alarm_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"github.com/oceanbase/ob-operator/internal/dashboard/model/alarm/rule"
"github.com/oceanbase/ob-operator/internal/dashboard/model/alarm/silence"
"github.com/oceanbase/ob-operator/internal/dashboard/model/job"
"github.com/oceanbase/ob-operator/pkg/errors"
httpErr "github.com/oceanbase/ob-operator/pkg/errors"
)

Expand Down Expand Up @@ -63,7 +62,7 @@ func ListAlerts(ctx *gin.Context) ([]alert.Alert, error) {
// @Router /api/v1/alarm/alert/diagnose [POST]
// @Security ApiKeyAuth
func DiagnoseAlert(_ *gin.Context) (*job.Job, error) {
return nil, errors.NewNotImplemented("")
return nil, httpErr.NewNotImplemented("")
}

// @ID ListSilencers
Expand Down
5 changes: 2 additions & 3 deletions internal/dashboard/handler/obtenant_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import (
"github.com/oceanbase/ob-operator/internal/dashboard/model/param"
"github.com/oceanbase/ob-operator/internal/dashboard/model/response"
crypto "github.com/oceanbase/ob-operator/pkg/crypto"
"github.com/oceanbase/ob-operator/pkg/errors"
httpErr "github.com/oceanbase/ob-operator/pkg/errors"
"github.com/oceanbase/ob-operator/pkg/k8s/client"
)
Expand Down Expand Up @@ -834,7 +833,7 @@ func ListOBTenantRelatedEvents(c *gin.Context) ([]response.K8sEvent, error) {
// @Router /api/v1/obtenants/{namespace}/{name}/users [GET]
// @Security ApiKeyAuth
func ListOBTenantUsers(_ *gin.Context) ([]string, error) {
return nil, errors.NewNotImplemented("")
return nil, httpErr.NewNotImplemented("")
}

// @ID ListOBTenantDatabases
Expand All @@ -852,5 +851,5 @@ func ListOBTenantUsers(_ *gin.Context) ([]string, error) {
// @Router /api/v1/obtenants/{namespace}/{name}/databases [GET]
// @Security ApiKeyAuth
func ListOBTenantDatabases(_ *gin.Context) ([]string, error) {
return nil, errors.NewNotImplemented("")
return nil, httpErr.NewNotImplemented("")
}

0 comments on commit 0c2fb7e

Please sign in to comment.