2017-08-18 00:50:23 +03:00
|
|
|
package interfaces
|
2017-08-09 19:19:46 +03:00
|
|
|
|
2017-08-18 00:50:23 +03:00
|
|
|
import (
|
|
|
|
"elyby/minecraft-skinsystem/model"
|
|
|
|
)
|
2017-08-09 19:19:46 +03:00
|
|
|
|
|
|
|
type SkinsRepository interface {
|
2017-08-17 02:47:35 +03:00
|
|
|
FindByUsername(username string) (*model.Skin, error)
|
|
|
|
FindByUserId(id int) (*model.Skin, error)
|
|
|
|
Save(skin *model.Skin) error
|
2017-08-09 19:19:46 +03:00
|
|
|
}
|
2017-08-18 00:50:23 +03:00
|
|
|
|
|
|
|
type CapesRepository interface {
|
2017-08-20 01:22:42 +03:00
|
|
|
FindByUsername(username string) (*model.Cape, error)
|
2017-08-18 00:50:23 +03:00
|
|
|
}
|