Переработка структуры проекта

This commit is contained in:
ErickSkrauch
2017-06-30 18:40:25 +03:00
parent e090d04dc7
commit 07903cf9c8
48 changed files with 894 additions and 1061 deletions

11
model/cape.go Normal file
View File

@@ -0,0 +1,11 @@
package model
import "os"
type Cape struct {
File *os.File
}
type CapesRepository interface {
FindByUsername(username string) (Cape, error)
}

20
model/skin.go Normal file
View File

@@ -0,0 +1,20 @@
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)
}