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
@@ -14,7 +14,7 @@ func (a *accessor) CreateModel(spec categorydomain.CategoryReq) error {
Code: spec.Code,
}
if err := a.DB.Create(&data).Error; err != nil {
if err := a.db.Create(&data).Error; err != nil {
return err
}