image

package
v0.0.0-...-3311072 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestHandler

type RestHandler struct {
	// contains filtered or unexported fields
}

RestHandler image handler

func NewRestHandler

func NewRestHandler(c *context.Context) (*RestHandler, error)

NewRestHandler ...

func (*RestHandler) CreateDonationImage

func (h *RestHandler) CreateDonationImage(req *structs.DrawRequest, tag string) error

CreateDonationImage create image of donation prove items

func (*RestHandler) Draw

func (h *RestHandler) Draw(c *gin.Context)

Draw define draw of image

func (*RestHandler) GetContent

func (h *RestHandler) GetContent(req *structs.DrawRequest) ([]string, error)

GetContent define the prove content of donation items

func (*RestHandler) GetImageURL

func (h *RestHandler) GetImageURL(req *structs.DrawRequest) (string, error)

GetImageURL donation proof picture aliyun path

func (*RestHandler) URL

func (h *RestHandler) URL(req *structs.DrawRequest, isShare int) string

URL create aliyun image name

func (*RestHandler) Upload

func (h *RestHandler) Upload(c *gin.Context)

Upload defines the upload of image

Jump to

Keyboard shortcuts

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