images

package
v0.0.0-...-3812866 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(cfg *common.Config) *iris.Application

func RegisterRoute

func RegisterRoute(app *iris.Application, cors context.Handler, cfg *common.Config)

Types

type AccountRoute

type AccountRoute struct {
	common.Context
	Service ImageService
}

func (*AccountRoute) BeforeActivation

func (r *AccountRoute) BeforeActivation(b mvc.BeforeActivation)

func (*AccountRoute) GetUploadList

func (r *AccountRoute) GetUploadList(sid uint64)

func (*AccountRoute) PostUpload

func (r *AccountRoute) PostUpload(sid uint64)

type Image

type Image struct {
	Data string `json:"data"`
}

type ImageService

type ImageService interface {
	Upload(*Image, uint64) (interface{}, error)
	List(uint64) (interface{}, error)
}

AccountService ...interface ...

func NewImageService

func NewImageService(conf *common.Config) ImageService

NewAccountService ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL