fix: create and get news

This commit is contained in:
ericprd
2025-03-05 22:15:39 +08:00
parent dd109c8aa0
commit 5c699dfa53
22 changed files with 46 additions and 159 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
package tagsvc
import (
"legalgo-BE-go/database"
tagdomain "legalgo-BE-go/internal/domain/tag"
)
func (i *impl) GetAllModel() ([]database.Tag, error) {
return i.tagRepo.GetAllModel()
func (i *impl) GetAllModel() ([]tagdomain.Tag, error) {
return i.tagRepo.GetAll()
}
+1 -2
View File
@@ -1,7 +1,6 @@
package tagsvc
import (
"legalgo-BE-go/database"
tagrepository "legalgo-BE-go/internal/accessor/tag"
tagdomain "legalgo-BE-go/internal/domain/tag"
)
@@ -13,7 +12,7 @@ type impl struct {
type Tag interface {
Create(tagdomain.TagReq) error
GetAll() ([]tagdomain.Tag, error)
GetAllModel() ([]database.Tag, error)
GetAllModel() ([]tagdomain.Tag, error)
}
func New(