mirror of
https://github.com/elyby/chrly.git
synced 2024-12-24 05:59:54 +05:30
f120064fe3
Added tests to jwt package Reworked redis backend implementation Skin repository now have methods to remove skins by user id or username
18 lines
391 B
Go
18 lines
391 B
Go
package interfaces
|
|
|
|
import (
|
|
"elyby/minecraft-skinsystem/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)
|
|
}
|