You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
325 B
Go

package types
3 years ago
type IPersitenceProvider interface {
CreateItem(item IItem) error
UpdateItem(item IItem) error
GetItem(id int) (IItem, error)
GetItemByUser(user IUser) ([]IItem, error)
GetAllItems() ([]IItem, error)
3 years ago
Link(user IUser, item IItem) error
DeleteItem(item IItem) error
3 years ago
CreateUser(user IUser) (int, error)
3 years ago
}