add pointer for ids

This commit is contained in:
sentriz
2019-05-23 16:29:12 +01:00
parent ff009b8851
commit 5f59660702
6 changed files with 20 additions and 25 deletions

No files matched your search

+1 -1
View File
@@ -10,5 +10,5 @@ type CrudBase struct {
}
type IDBase struct {
ID int `gorm:"primary_key"`
ID *int `gorm:"primary_key"`
}