json tags
This commit is contained in:
1 parent
70efb513dd
commit
ce0720d881
1 file changed
+3
-3
+3
-3
@@ -8,9 +8,9 @@ import (
|
||||
|
||||
// EntityBase contains common columns for all tables.
|
||||
type EntityBase struct {
|
||||
ID uuid.UUID `gorm:"type:uuid;primary_key;"`
|
||||
CreatedAt time.Time
|
||||
UpdatedAt *time.Time
|
||||
ID uuid.UUID `gorm:"type:uuid;primary_key;" json:"id"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt *time.Time `json:"updated_at"`
|
||||
//DeletedAt *time.Time
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user