forked from ebhomengo/niki
1
0
Fork 0
niki/entity/piggy_bank/contract/piggy_bank_service.go

12 lines
405 B
Go
Raw Normal View History

2023-12-15 08:24:06 +00:00
package contract
import entityppigybank "niki/entity/piggy_bank/model"
type PiggyBankServices interface {
AddPiggyBank([]entityppigybank.PiggyBank) error
EditPiggyBank(piggyID uint, piggyBankInput entityppigybank.PiggyBank) error
DeletePiggyBank(piggyID uint) error
GetAllPiggyBank() ([]entityppigybank.PiggyBankRequest, error)
GetPiggyBankByID(piggyBank uint) (entityppigybank.PiggyBank, error)
}