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 (
|
2018-02-16 00:13:57 +03:00
|
|
|
"github.com/elyby/chrly/model"
|
2017-08-18 00:50:23 +03:00
|
|
|
)
|
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
|
2018-01-23 18:43:37 +03:00
|
|
|
RemoveByUserId(id int) error
|
|
|
|
RemoveByUsername(username string) 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
|
|
|
}
|