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
+5
View File
@@ -0,0 +1,5 @@
package newssvc
func (i *impl) Delete(id string) error {
return i.newsRepo.Delete(id)
}
+1
View File
@@ -16,6 +16,7 @@ type impl struct {
type News interface {
GetAll() ([]newsdomain.News, error)
Create(newsdomain.NewsReq, string) error
Delete(string) error
}
func New(