Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteByArticleId ¶
DeleteByArticleId 删除文章的所有分类关系
func SaveOrCreateById ¶
Types ¶
type Entity ¶
type Entity struct {
Id uint64 `gorm:"primaryKey;column:id;autoIncrement;not null;" json:"id"` //
ArticleId uint64 `` //
/* 140-byte string literal not displayed */
ArticleCategoryId uint64 `` //
/* 143-byte string literal not displayed */
Effective int `gorm:"column:effective;type:int;not null;default:0;index:idx_article_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 GetByArticleId ¶
GetByArticleId 获取文章的所有分类关系
func GetByArticleIds ¶
GetByArticleIds 批量获取文章的分类关系
func GetByArticleIdsEffective ¶
GetByArticleIdsEffective 批量获取文章的分类关系
func GetOneByCategoryId ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.