uploader

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Example

func Example(c *gin.Context)

func File

func File(c *gin.Context)

func GenerateThumbnail

func GenerateThumbnail(imagePath string) (outputPath string, err error)

* Generate thumbnail

func Image

func Image(c *gin.Context)

Types

type ImageResponse

type ImageResponse struct {
	schema.FileResponse
	Thumbnail     bool   `json:"thumbnail"`      // 是否拥有缩略图
	ThumbnailPath string `json:"thumbnail_path"` // 缩略图的路径
}

Jump to

Keyboard shortcuts

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