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
+23
View File
@@ -0,0 +1,23 @@
package categorysvc
import (
categoryrepository "legalgo-BE-go/internal/accessor/category"
categorydomain "legalgo-BE-go/internal/domain/category"
)
type impl struct {
categoryRepo categoryrepository.Category
}
type Category interface {
Create(categorydomain.CategoryReq) error
GetAll() ([]categorydomain.Category, error)
}
func New(
categoryRepo categoryrepository.Category,
) Category {
return &impl{
categoryRepo: categoryRepo,
}
}