chores: refactor struct and structure project
This commit is contained in:
@@ -10,14 +10,11 @@ type accessor struct {
|
||||
}
|
||||
|
||||
type Category interface {
|
||||
Create(categorydomain.CategoryReq) error
|
||||
CreateModel(categorydomain.CategoryReq) error
|
||||
Update(categorydomain.Category) error
|
||||
|
||||
GetAll() ([]categorydomain.Category, error)
|
||||
GetAllModel() ([]database.CategoryModel, error)
|
||||
|
||||
GetByIDs([]string) ([]categorydomain.Category, error)
|
||||
GetBulks([]string) ([]database.CategoryModel, error)
|
||||
GetAllModel() ([]categorydomain.Category, error)
|
||||
GetByIDs([]string) ([]database.Category, error)
|
||||
}
|
||||
|
||||
func New(
|
||||
|
||||
Reference in New Issue
Block a user