Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveOrCreateById ¶
Types ¶
type Entity ¶
type Entity struct {
UserId uint64 `gorm:"primaryKey;column:user_id;autoIncrement;not null;" json:"userId"` // id
ReplyCount int `gorm:"column:reply_count;type:int;not null;default:0;" json:"replyCount"` // 回复消息
LikeCount int `gorm:"column:like_count;type:int;not null;default:0;" json:"likeCount"` // 点赞消息
CreatedAt time.Time `gorm:"column:created_at;index;autoCreateTime;<-:create;" json:"createdAt"` //
UpdatedAt time.Time `gorm:"column:updated_at;autoUpdateTime;" json:"updatedAt"`
}
Click to show internal directories.
Click to hide internal directories.