feat: category routes

This commit is contained in:
ericprd
2025-03-01 21:20:51 +08:00
parent acd80480dd
commit bdf6dd131e
19 changed files with 368 additions and 52 deletions
+1 -1
View File
@@ -3,5 +3,5 @@ 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)
}
+1 -1
View File
@@ -3,5 +3,5 @@ package tagsvc
import tagdomain "legalgo-BE-go/internal/domain/tag"
func (i *impl) GetAll() ([]tagdomain.Tag, error) {
return i.TagRepo.GetAll()
return i.tagRepo.GetAll()
}
+2 -4
View File
@@ -6,7 +6,7 @@ import (
)
type impl struct {
TagRepo tagrepository.TagAccessor
tagRepo tagrepository.TagAccessor
}
type TagIntf interface {
@@ -17,7 +17,5 @@ type TagIntf interface {
func New(
tagRepo tagrepository.TagAccessor,
) TagIntf {
return &impl{
TagRepo: tagRepo,
}
return &impl{tagRepo}
}