Merge pull request #301 from reasonerjt/api-attributes

Api attributes
This commit is contained in:
Daniel Jiang 2016-06-02 11:33:05 +08:00
commit 0d209c12bf

View File

@ -26,10 +26,10 @@ type Project struct {
Name string `orm:"column(name)" json:"name"` Name string `orm:"column(name)" json:"name"`
CreationTime time.Time `orm:"column(creation_time)" json:"creation_time"` CreationTime time.Time `orm:"column(creation_time)" json:"creation_time"`
CreationTimeStr string `json:"creation_time_str"` CreationTimeStr string `json:"creation_time_str"`
Deleted int `orm:"column(deleted) json:"deleted""` Deleted int `orm:"column(deleted)" json:"deleted"`
//UserID int `json:"UserId"` //UserID int `json:"UserId"`
OwnerName string `json:"owner_name"` 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 //This field does not have correspondent column in DB, this is just for UI to disable button
Togglable bool Togglable bool