Documentation ¶
Index ¶
- type Client
- func (comp *Client) CreateQRCode(ctx context.Context, path string, width int64) (*http.Response, error)
- func (comp *Client) Get(ctx context.Context, path string, width int64, autoColor bool, ...) (*http.Response, error)
- func (comp *Client) GetUnlimited(ctx context.Context, scene string, page string, checkPath bool, ...) (*http.Response, error)
- func (comp *Client) SaveAs(ctx context.Context, savedPath string, perm fs.FileMode, path string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseClient *kernel.BaseClient
}
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)
func (*Client) CreateQRCode ¶
func (comp *Client) CreateQRCode(ctx context.Context, path string, width int64) (*http.Response, error)
获取小程序二维码,适用于需要的码数量较少的业务场景 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.createQRCode.html
func (*Client) Get ¶
func (comp *Client) Get(ctx context.Context, path string, width int64, autoColor bool, lineColor *power.HashMap, isHyaline bool) (*http.Response, error)
获取小程序码,适用于需要的码数量较少的业务场景 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.get.html
func (*Client) GetUnlimited ¶
func (comp *Client) GetUnlimited( ctx context.Context, scene string, page string, checkPath bool, envVersion string, width int64, autoColor bool, lineColor *power.HashMap, isHyaline bool) (*http.Response, error)
获取小程序码,适用于需要的码数量极多的业务场景 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.getUnlimited.html
func (*Client) SaveAs ¶
func (comp *Client) SaveAs(ctx context.Context, savedPath string, perm fs.FileMode, path string, width int64, autoColor bool, lineColor *power.HashMap, isHyaline bool) error
获取小程序码,适用于需要的码数量较少的业务场景 https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.get.html
Click to show internal directories.
Click to hide internal directories.