fix: create and get news
This commit is contained in:
@@ -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,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(
|
||||
|
||||
Reference in New Issue
Block a user