Add custom branding functionality (#2667)

Этот коммит содержится в:
Joram Wilander
2016-04-11 13:45:03 -04:00
коммит произвёл Christopher Speller
родитель 5b96ad59c5
Коммит 49ab8b2161
24 изменённых файлов: 654 добавлений и 87 удалений

24
einterfaces/brand.go Обычный файл
Просмотреть файл

@@ -0,0 +1,24 @@
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
package einterfaces
import (
"github.com/mattermost/platform/model"
"mime/multipart"
)
type BrandInterface interface {
SaveBrandImage(*multipart.FileHeader) *model.AppError
GetBrandImage() ([]byte, *model.AppError)
}
var theBrandInterface BrandInterface
func RegisterBrandInterface(newInterface BrandInterface) {
theBrandInterface = newInterface
}
func GetBrandInterface() BrandInterface {
return theBrandInterface
}