From 2069fbd6294057d27789de2c710c96493e6c06b7 Mon Sep 17 00:00:00 2001 From: Qiaozp Date: Thu, 7 Sep 2023 10:03:49 +0800 Subject: [PATCH] lint Signed-off-by: Qiaozp --- pkg/server/infrastructure/datastore/mysql/mysql.go | 8 +++++--- pkg/server/infrastructure/datastore/postgres/postgres.go | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/pkg/server/infrastructure/datastore/mysql/mysql.go b/pkg/server/infrastructure/datastore/mysql/mysql.go index e28f911e..dfc0a13b 100644 --- a/pkg/server/infrastructure/datastore/mysql/mysql.go +++ b/pkg/server/infrastructure/datastore/mysql/mysql.go @@ -18,13 +18,15 @@ package mysql import ( "context" + + mysqlgorm "gorm.io/driver/mysql" + "gorm.io/gorm" + "gorm.io/gorm/logger" + "github.com/kubevela/velaux/pkg/server/domain/model" "github.com/kubevela/velaux/pkg/server/infrastructure/datastore" "github.com/kubevela/velaux/pkg/server/infrastructure/datastore/sql" "github.com/kubevela/velaux/pkg/server/infrastructure/datastore/sqlnamer" - mysqlgorm "gorm.io/driver/mysql" - "gorm.io/gorm" - "gorm.io/gorm/logger" ) type mysql struct { diff --git a/pkg/server/infrastructure/datastore/postgres/postgres.go b/pkg/server/infrastructure/datastore/postgres/postgres.go index 58ccd016..b71ed114 100644 --- a/pkg/server/infrastructure/datastore/postgres/postgres.go +++ b/pkg/server/infrastructure/datastore/postgres/postgres.go @@ -18,13 +18,15 @@ package postgres import ( "context" + + postgresorm "gorm.io/driver/postgres" + "gorm.io/gorm" + "gorm.io/gorm/logger" + "github.com/kubevela/velaux/pkg/server/domain/model" "github.com/kubevela/velaux/pkg/server/infrastructure/datastore" "github.com/kubevela/velaux/pkg/server/infrastructure/datastore/sql" "github.com/kubevela/velaux/pkg/server/infrastructure/datastore/sqlnamer" - postgresorm "gorm.io/driver/postgres" - "gorm.io/gorm" - "gorm.io/gorm/logger" ) type postgres struct {