redpacketcover

package
v2.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetRedPacketCoverRequest

type GetRedPacketCoverRequest struct {
	// openid 可领取用户的openid
	OpenID string `json:"openid"`
	// ctoken 在红包封面平台获取发放ctoken(需要指定可以发放的appid)
	CToken string `json:"ctoken"`
}

GetRedPacketCoverRequest 获取微信红包封面参数

type GetRedPacketCoverResp

type GetRedPacketCoverResp struct {
	util.CommonError
	Data struct {
		URL string `json:"url"`
	} `json:"data"` // 唯一请求标识
}

GetRedPacketCoverResp 获取微信红包封面

type RedPacketCover

type RedPacketCover struct {
	*context.Context
}

RedPacketCover struct

func NewRedPacketCover

func NewRedPacketCover(context *context.Context) *RedPacketCover

NewRedPacketCover 实例

func (*RedPacketCover) GetRedPacketCoverURL

func (cover *RedPacketCover) GetRedPacketCoverURL(coderParams GetRedPacketCoverRequest) (res GetRedPacketCoverResp, err error)

GetRedPacketCoverURL 获得指定用户可以领取的红包封面链接。获取参数ctoken参考微信红包封面开放平台 文档地址: https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/red-packet-cover/getRedPacketCoverUrl.html

Jump to

Keyboard shortcuts

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