Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fc1e313

Browse files
committed
bugfix
1 parent 3f17db4 commit fc1e313

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/model/topic.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,11 @@ func (*TopicEx) TableName() string {
6262

6363
// 社区主题扩展(计数)信息,用于 incr 更新
6464
type TopicUpEx struct {
65-
Tid int `json:"-" xorm:"pk"`
66-
TopicEx `json:"-" xorm:"-"`
65+
Tid int `json:"-" xorm:"pk"`
66+
View int `json:"view"`
67+
Reply int `json:"reply"`
68+
Like int `json:"like"`
69+
Mtime time.Time `json:"mtime" xorm:"<-"`
6770
}
6871

6972
type TopicInfo struct {

0 commit comments

Comments
 (0)