feat: news router
This commit is contained in:
@@ -3,5 +3,6 @@ package tagsvc
|
||||
import tagdomain "legalgo-BE-go/internal/domain/tag"
|
||||
|
||||
func (i *impl) Create(spec tagdomain.TagReq) error {
|
||||
return i.tagRepo.Create(spec)
|
||||
// return i.tagRepo.Create(spec)
|
||||
return i.tagRepo.CreateModel(spec)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
package tagsvc
|
||||
|
||||
import (
|
||||
"legalgo-BE-go/database"
|
||||
)
|
||||
|
||||
func (i *impl) GetAllModel() ([]database.TagModel, error) {
|
||||
return i.tagRepo.GetAllModel()
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
package tagsvc
|
||||
|
||||
import (
|
||||
"legalgo-BE-go/database"
|
||||
tagrepository "legalgo-BE-go/internal/accessor/tag"
|
||||
tagdomain "legalgo-BE-go/internal/domain/tag"
|
||||
)
|
||||
@@ -12,6 +13,7 @@ type impl struct {
|
||||
type TagIntf interface {
|
||||
Create(tagdomain.TagReq) error
|
||||
GetAll() ([]tagdomain.Tag, error)
|
||||
GetAllModel() ([]database.TagModel, error)
|
||||
}
|
||||
|
||||
func New(
|
||||
|
||||
Reference in New Issue
Block a user