Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteByTopicId ¶
func ReplaceTopicCategories ¶
func SaveOrCreateById ¶
Types ¶
type Entity ¶
type Entity struct {
Id uint64 `gorm:"primaryKey;column:id;autoIncrement;not null;" json:"id"`
TopicId uint64 `` /* 175-byte string literal not displayed */
CategoryId uint64 `` /* 169-byte string literal not displayed */
Effective int `gorm:"column:effective;type:int;not null;default:0;index:idx_topic_category_effective,priority:1;" json:"effective"`
CreatedAt time.Time `gorm:"column:created_at;autoCreateTime;<-:create;" json:"createdAt"`
UpdatedAt time.Time `gorm:"column:updated_at;autoUpdateTime;" json:"updatedAt"`
}
func GetByTopicId ¶
func GetOneByCategoryId ¶
Click to show internal directories.
Click to hide internal directories.