mirror of
https://github.com/teivah/100-go-mistakes.git
synced 2026-06-22 01:17:11 +08:00
12 lines
342 B
Go
12 lines
342 B
Go
package store
|
|
|
|
type CustomerStorage interface {
|
|
StoreCustomer(customer Customer) error
|
|
GetCustomer(id string) (Customer, error)
|
|
UpdateCustomer(customer Customer) error
|
|
GetAllCustomers() ([]Customer, error)
|
|
GetCustomersWithoutContract() ([]Customer, error)
|
|
GetCustomersWithNegativeBalance() ([]Customer, error)
|
|
}
|
|
|
|
type Customer struct{}
|