feat: get news by slug and and author detail
This commit is contained in:
@@ -18,4 +18,6 @@ type News struct {
|
||||
CreatedAt time.Time `gorm:"default:CURRENT_TIMESTAMP" json:"created_at"`
|
||||
UpdatedAt time.Time `gorm:"default:CURRENT_TIMESTAMP" json:"updated_at"`
|
||||
DeletedAt time.Time `gorm:"default:null" json:"deleted_at"`
|
||||
|
||||
Author Staff `gorm:"foreignKey:AuthorID" json:"author"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user