other

package
v3.0.0-...-8a73552 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 6 Imported by: 0

README

《其他能力》相关功能

Name Function
图片上传 UploadImage
视频上传 UploadVideo

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UploadResponse

type UploadResponse struct {
	model.WechatError
	RequestId string // 唯一请求ID
	MediaId   string `json:"media_id,omitempty"` // 媒体文件标识ID
}

UploadResponse 图片上传应答参数

func UploadImage

func UploadImage(config *service.Config, fileName string, image interface{}) (uploadResponse *UploadResponse, err error)

UploadImage 图片上传 商户平台文档: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter2_1_1.shtml 服务商平台文档: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter2_1_1.shtml

func UploadVideo

func UploadVideo(config *service.Config, fileName string, video interface{}) (uploadResponse *UploadResponse, err error)

UploadVideo 视频上传 商户平台文档: https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter2_1_2.shtml 服务商平台文档: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter2_1_2.shtml

Jump to

Keyboard shortcuts

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