mirror of
https://github.com/elyby/chrly.git
synced 2024-12-05 21:19:19 +05:30
21 lines
590 B
Go
21 lines
590 B
Go
package model
|
|
|
|
type Skin struct {
|
|
UserId int `json:"userId"`
|
|
Uuid string `json:"uuid"`
|
|
Username string `json:"username"`
|
|
SkinId int `json:"skinId"`
|
|
Url string `json:"url"`
|
|
Is1_8 bool `json:"is1_8"`
|
|
IsSlim bool `json:"isSlim"`
|
|
Hash string `json:"hash"`
|
|
MojangTextures string `json:"mojangTextures"`
|
|
MojangSignature string `json:"mojangSignature"`
|
|
OldUsername string
|
|
}
|
|
|
|
type SkinsRepository interface {
|
|
FindByUsername(username string) (Skin, error)
|
|
FindByUserId(id int) (Skin, error)
|
|
}
|