Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
yantijin committed Oct 17, 2022
1 parent f495c16 commit 9626822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/model/sys_article.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type Article struct {
UserId int64 `gorm:"index:article_user_id" json:"userId"` // 文章所属用户的ID
Title string `gorm:"size:128;not null" json:"title""` // 题目
Content string `gorm:"type:longtext;not null" json:"content"` // 文章内容
ViewCount int64 `gotm:"not null; index: idx_view_count" json:"viewCount"` // 文章浏览次数
ViewCount int64 `gorm:"not null; index: idx_view_count" json:"viewCount"` // 文章浏览次数
ContentType string `gorm:"type:varchar(32);not null" json:"contentType"` // 内容类型:markdown还是html
LikeCount int64 `gorm:"not null;default:0" json:"likeCount"` // 评论点赞人数
CommentCount int64 `gorm:"not null;default:0" json:"commentCount"` // 文章被人评论的次数
Expand Down

0 comments on commit 9626822

Please sign in to comment.