chores: refactor struct and structure project

This commit is contained in:
ericprd
2025-03-05 21:21:44 +08:00
parent 13a8481f22
commit 567e0e32ca
103 changed files with 1125 additions and 731 deletions
+1 -1
View File
@@ -4,6 +4,6 @@ import (
"legalgo-BE-go/database"
)
func (i *impl) GetAllModel() ([]database.TagModel, error) {
func (i *impl) GetAllModel() ([]database.Tag, error) {
return i.tagRepo.GetAllModel()
}
+3 -3
View File
@@ -10,14 +10,14 @@ type impl struct {
tagRepo tagrepository.TagAccessor
}
type TagIntf interface {
type Tag interface {
Create(tagdomain.TagReq) error
GetAll() ([]tagdomain.Tag, error)
GetAllModel() ([]database.TagModel, error)
GetAllModel() ([]database.Tag, error)
}
func New(
tagRepo tagrepository.TagAccessor,
) TagIntf {
) Tag {
return &impl{tagRepo}
}