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
Click to show internal directories.
Click to hide internal directories.