oss

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type OSS

type OSS interface {
	Upload(file *multipart.FileHeader, prefix string) (string, string, error)
}

type OssController

type OssController struct {
	controller.ResourceController
	Oss OSS `inject:"oss"`
}

func (*OssController) InitRouter

func (c *OssController) InitRouter(g *gin.RouterGroup) *gin.RouterGroup

func (*OssController) UploadFile

func (c *OssController) UploadFile(context *gin.Context)

生成验证码

func (*OssController) UploadImage

func (c *OssController) UploadImage(context *gin.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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