Initial cloud-services repo - gateway service + pkg modules
This commit is contained in:
16
pkg/common/configuration.go
Normal file
16
pkg/common/configuration.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"fiskerinc.com/modules/common/dbbasemodel"
|
||||
)
|
||||
|
||||
type Configuration struct {
|
||||
ID string `pg:",pk,unique" json:"id" validate:"required,max=256"`
|
||||
UniqueCode string `json:"unique_code" validate:"min=8,max=8"`
|
||||
UserId string `json:"user_id" validate:"required"`
|
||||
Trim string `json:"trim" validate:"min=2,max=2"`
|
||||
Color string `json:"color" validate:"min=2,max=2"`
|
||||
Interior string `json:"interior" validate:"min=2,max=2"`
|
||||
Wheels string `json:"wheels" validate:"min=2,max=2"`
|
||||
dbbasemodel.DBModelBase
|
||||
}
|
||||
Reference in New Issue
Block a user