diff options
Diffstat (limited to 'models/issue.go')
-rw-r--r-- | models/issue.go | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/models/issue.go b/models/issue.go index c2c3d253..2d0f06ab 100644 --- a/models/issue.go +++ b/models/issue.go @@ -13,11 +13,11 @@ import ( "github.com/go-xorm/xorm" log "gopkg.in/clog.v1" - api "github.com/gogits/go-gogs-client" + api "github.com/gogs/go-gogs-client" - "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/pkg/setting" - "github.com/gogits/gogs/pkg/tool" + "github.com/gogs/gogs/models/errors" + "github.com/gogs/gogs/pkg/setting" + "github.com/gogs/gogs/pkg/tool" ) var ( @@ -28,34 +28,34 @@ var ( type Issue struct { ID int64 RepoID int64 `xorm:"INDEX UNIQUE(repo_index)"` - Repo *Repository `xorm:"-"` + Repo *Repository `xorm:"-" json:"-"` Index int64 `xorm:"UNIQUE(repo_index)"` // Index in one repository. PosterID int64 - Poster *User `xorm:"-"` + Poster *User `xorm:"-" json:"-"` Title string `xorm:"name"` Content string `xorm:"TEXT"` - RenderedContent string `xorm:"-"` - Labels []*Label `xorm:"-"` + RenderedContent string `xorm:"-" json:"-"` + Labels []*Label `xorm:"-" json:"-"` MilestoneID int64 - Milestone *Milestone `xorm:"-"` + Milestone *Milestone `xorm:"-" json:"-"` Priority int AssigneeID int64 - Assignee *User `xorm:"-"` + Assignee *User `xorm:"-" json:"-"` IsClosed bool - IsRead bool `xorm:"-"` + IsRead bool `xorm:"-" json:"-"` IsPull bool // Indicates whether is a pull request or not. - PullRequest *PullRequest `xorm:"-"` + PullRequest *PullRequest `xorm:"-" json:"-"` NumComments int - Deadline time.Time `xorm:"-"` + Deadline time.Time `xorm:"-" json:"-"` DeadlineUnix int64 - Created time.Time `xorm:"-"` + Created time.Time `xorm:"-" json:"-"` CreatedUnix int64 - Updated time.Time `xorm:"-"` + Updated time.Time `xorm:"-" json:"-"` UpdatedUnix int64 - Attachments []*Attachment `xorm:"-"` - Comments []*Comment `xorm:"-"` + Attachments []*Attachment `xorm:"-" json:"-"` + Comments []*Comment `xorm:"-" json:"-"` } func (issue *Issue) BeforeInsert() { |