image

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UploadImage

func UploadImage(params *UploadImageRequest) (string, error)

UploadImage

Types

type UploadImageRequest

type UploadImageRequest struct {
	AccessToken   string                 // 第三方平台的接口调用凭据
	MultipartFile UploadImageRequestFile // 文件
	Type          interface{}            // 图片用途,1/null:小程序头像;2:服务类目资质图片;3:小程序名称审核资料
}

UploadImageRequest 请求结构体

type UploadImageRequestFile

type UploadImageRequestFile struct {
	Name   string
	Reader io.Reader
}

type UploadImageResponse

type UploadImageResponse struct {
	Data      string `json:"data"`       // 响应参数
	Errno     int64  `json:"errno"`      // 状态码
	ErrMsg    string `json:"msg"`        // 错误信息
	ErrorCode int64  `json:"error_code"` // openapi 错误码
	ErrorMsg  string `json:"error_msg"`  // openapi 错误信息
}

Jump to

Keyboard shortcuts

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