Исходники и презентации
This commit is contained in:
19
lessons/interfaces/producer_interface/storage/client.go
Normal file
19
lessons/interfaces/producer_interface/storage/client.go
Normal file
@ -0,0 +1,19 @@
|
||||
package storage
|
||||
|
||||
type Client struct {
|
||||
Id int
|
||||
Name string
|
||||
Surname string
|
||||
Age int
|
||||
Address string
|
||||
}
|
||||
|
||||
type ClientStorage interface {
|
||||
GetAllClients() ([]Client, error)
|
||||
GetClientsByAge(int) ([]Client, error)
|
||||
GetClient(int) (Client, error)
|
||||
RemoveClient(int) error
|
||||
UpdateClient(Client) error
|
||||
CreateClient(Client) error
|
||||
// ...
|
||||
}
|
||||
Reference in New Issue
Block a user