forked from ebhomengo/niki
1
0
Fork 0
niki/service/piggy_bank/init.go

15 lines
285 B
Go
Raw Normal View History

2023-12-15 08:24:06 +00:00
package piggy_bank
2023-12-16 06:09:50 +00:00
import (
"git.gocasts.ir/ebhomengo/niki/adapter/storage"
entitypiggybank "git.gocasts.ir/ebhomengo/niki/entity/piggy_bank"
)
2023-12-15 08:24:06 +00:00
2023-12-16 06:09:50 +00:00
type Usecase struct {
storage entitypiggybank.PiggyBankServices
}
func InitUsecase() Usecase {
return Usecase{storage: &storage.DB}
}