add linter, refactor
This commit is contained in:
1 parent
9d61ec49c3
commit
1fa20f9cda
24 files changed
+145
-71
No files matched your search
+5
-1
@@ -1,13 +1,15 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/integration-system/isp-lib/config/schema"
|
||||
"time"
|
||||
|
||||
"github.com/integration-system/isp-lib/config/schema"
|
||||
)
|
||||
|
||||
type ConfigData map[string]interface{}
|
||||
|
||||
type Config struct {
|
||||
//nolint
|
||||
tableName string `sql:"?db_schema.configs" json:"-"`
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name" valid:"required~Required"`
|
||||
@@ -22,6 +24,7 @@ type Config struct {
|
||||
}
|
||||
|
||||
type CommonConfig struct {
|
||||
//nolint
|
||||
tableName string `sql:"?db_schema.common_configs" json:"-"`
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name" valid:"required~Required"`
|
||||
@@ -32,6 +35,7 @@ type CommonConfig struct {
|
||||
}
|
||||
|
||||
type ConfigSchema struct {
|
||||
//nolint
|
||||
tableName string `sql:"?db_schema.config_schemas" json:"-"`
|
||||
Id string `json:"id"`
|
||||
Version string
|
||||
|
||||
@@ -3,6 +3,7 @@ package entity
|
||||
import "time"
|
||||
|
||||
type Module struct {
|
||||
//nolint
|
||||
tableName string `sql:"?db_schema.modules" json:"-"`
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name" valid:"required~Required"`
|
||||
|
||||
Reference in new issue
Block a user