routers

package
v0.0.0-...-2dc537c Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

manage.go 存放图片管理相关的路由逻辑

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseRouteFunc

func BaseRouteFunc(ctx *gin.Context)

func ImageGaussianBlur

func ImageGaussianBlur(ctx *gin.Context)

func ImageGet

func ImageGet(ctx *gin.Context)

查询图片 优先级:id > name > 列表

func ImageRemove

func ImageRemove(ctx *gin.Context)

func ImageReplace

func ImageReplace(ctx *gin.Context)

func ImageResize

func ImageResize(ctx *gin.Context)

func ImageUpload

func ImageUpload(ctx *gin.Context)

Types

type RtnJsonBase

type RtnJsonBase struct {
	Msg string `json:"msg,omitempty"`
}

基本返回数据

type RtnJsonImage

type RtnJsonImage struct {
	RtnJsonBase
	Data *models.Image `json:"data"`
}

图片返回数据

type RtnJsonImageList

type RtnJsonImageList struct {
	RtnJsonBase
	Total int             `json:"total"`
	Data  []*models.Image `json:"data"`
}

图片列表返回数据

Jump to

Keyboard shortcuts

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