Help us shape the future of Go! Take the 2026 Go Developer Survey

tencent

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provides = wire.NewSet(
	wire.Struct(new(Controller), "*"),
	wire.Struct(new(Service), "*"),
)

Functions

This section is empty.

Types

type Controller

type Controller struct {
	TencentService *Service
}

func (*Controller) CosPresigned

func (x *Controller) CosPresigned(ctx context.Context, c *app.RequestContext)

CosPresigned 对象存储预签名

func (*Controller) ImageInfo

func (x *Controller) ImageInfo(ctx context.Context, c *app.RequestContext)

ImageInfo 获取图片信息

type ImageInfoDto

type ImageInfoDto struct {
	Url string `query:"url,required"`
}

type Service

type Service struct {
	*common.Inject
}

func (*Service) CosClient

func (x *Service) CosClient(ctx context.Context) (client *cos.Client, err error)

CosClient Cos 对象存储客户端

func (*Service) CosPresigned

func (x *Service) CosPresigned(ctx context.Context) (result interface{}, err error)

CosPresigned 对象存储预签名

func (*Service) ImageInfo

func (x *Service) ImageInfo(ctx context.Context, url string) (result map[string]interface{}, err error)

ImageInfo 图片信息

Jump to

Keyboard shortcuts

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