Post & Comment Editors

This commit is contained in:
2024-03-07 22:41:00 +08:00
parent f9438b4d89
commit 3300e46e88
16 changed files with 335 additions and 153 deletions

View File

@ -77,6 +77,7 @@ func (v *PostTypeContext) GetViaAlias(alias string) (models.Feed, error) {
table := viper.GetString("database.prefix") + v.TableName
if err := v.Tx.
Table(table).
Select("*, ? as model_type", v.ColumnName).
Where("alias = ?", alias).
First(&item).Error; err != nil {
return item, err