From 33c979974d54feece0af5eeebee461cf9db89ed9 Mon Sep 17 00:00:00 2001 From: Tan Jiang Date: Wed, 1 Jun 2016 16:08:40 +0800 Subject: [PATCH 1/2] fix annotation error --- models/project.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/project.go b/models/project.go index 4af9523b0..53e52c729 100644 --- a/models/project.go +++ b/models/project.go @@ -26,10 +26,10 @@ type Project struct { Name string `orm:"column(name)" json:"name"` CreationTime time.Time `orm:"column(creation_time)" json:"creation_time"` CreationTimeStr string `json:"creation_time_str"` - Deleted int `orm:"column(deleted) json:"deleted""` + Deleted int `orm:"column(deleted)" json:"deleted""` //UserID int `json:"UserId"` OwnerName string `json:"owner_name"` - Public int `orm:"column(public) json:"public"` + Public int `orm:"column(public)" json:"public"` //This field does not have correspondent column in DB, this is just for UI to disable button Togglable bool From 886fb8eb672d862a60fafa9d970b40603c0f1363 Mon Sep 17 00:00:00 2001 From: Tan Jiang Date: Wed, 1 Jun 2016 17:10:48 +0800 Subject: [PATCH 2/2] fix annotation error --- models/project.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/project.go b/models/project.go index 53e52c729..7f5d54c25 100644 --- a/models/project.go +++ b/models/project.go @@ -26,7 +26,7 @@ type Project struct { Name string `orm:"column(name)" json:"name"` CreationTime time.Time `orm:"column(creation_time)" json:"creation_time"` CreationTimeStr string `json:"creation_time_str"` - Deleted int `orm:"column(deleted)" json:"deleted""` + Deleted int `orm:"column(deleted)" json:"deleted"` //UserID int `json:"UserId"` OwnerName string `json:"owner_name"` Public int `orm:"column(public)" json:"public"`