chores: refactor struct and structure project
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user