Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteEntity ¶
func GetUserCount ¶ added in v0.0.3
Types ¶
type Entity ¶
type Entity struct {
Id uint64 `gorm:"primaryKey;column:id;autoIncrement;not null;" json:"id"` //
ArticleId uint64 `gorm:"column:article_id;type:bigint unsigned;not null;default:0;index:idx_reply_article_created;" json:"articleId"` //
UserId uint64 `gorm:"column:user_id;type:bigint unsigned;not null;default:0;index;" json:"userId"` //
TargetId uint64 `gorm:"column:target_id;type:bigint unsigned;not null;default:0;" json:"targetId"` // 目标id
Content string `gorm:"column:content;type:text;" json:"content"` //
ReplyId uint64 `gorm:"column:reply_id;type:bigint;not null;default:0;" json:"replyId"`
CreatedAt time.Time `gorm:"column:created_at;index;autoCreateTime;<-:create;index:idx_reply_article_created;" json:"createdAt"` //
UpdatedAt time.Time `gorm:"column:updated_at;autoUpdateTime;" json:"updatedAt"`
gorm.DeletedAt
}
func GetByArticleId ¶ added in v0.0.3
func GetByMaxIdPage ¶
Click to show internal directories.
Click to hide internal directories.