feat: delete news, tag, and category

This commit is contained in:
ericprd
2025-03-05 23:55:41 +08:00
parent 299fcf949b
commit d217ec8a62
21 changed files with 131 additions and 16 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import (
func (a *accessor) GetAllModel() ([]categorydomain.Category, error) {
var categories []categorydomain.Category
if err := a.DB.Find(&categories).Error; err != nil {
if err := a.db.Find(&categories).Error; err != nil {
return nil, err
}