mirror of
https://github.com/elyby/chrly.git
synced 2025-01-11 06:12:09 +05:30
23 lines
540 B
Go
23 lines
540 B
Go
package interfaces
|
|
|
|
import (
|
|
"github.com/elyby/chrly/api/mojang"
|
|
"github.com/elyby/chrly/model"
|
|
)
|
|
|
|
type SkinsRepository interface {
|
|
FindByUsername(username string) (*model.Skin, error)
|
|
FindByUserId(id int) (*model.Skin, error)
|
|
Save(skin *model.Skin) error
|
|
RemoveByUserId(id int) error
|
|
RemoveByUsername(username string) error
|
|
}
|
|
|
|
type CapesRepository interface {
|
|
FindByUsername(username string) (*model.Cape, error)
|
|
}
|
|
|
|
type MojangTexturesProvider interface {
|
|
GetForUsername(username string) (*mojang.SignedTexturesResponse, error)
|
|
}
|