repository

package
v0.0.0-...-c3d2762 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Hid *hashids.HashID

Hid ...

Functions

func CheckQrcodeTask

func CheckQrcodeTask(token string) (t orm.Task, err error)

CheckQrcodeTask 获取签名任务二维码

func CreateTempQrcode

func CreateTempQrcode(id int32) (*qrcode.TempQrcode, error)

CreateTempQrcode 创建临时二维码

func Decode

func Decode(s string) (ids []int)

Decode 解密

func Encode

func Encode(ids []int) (s string)

Encode 加密

func GetBindQrcode

func GetBindQrcode(taskID int) (url string, err error)

GetBindQrcode 站点获取签名任务

func SendArticle

func SendArticle(openID, title, description, picURL, url string) (err error)

SendArticle 发送文章

func SendEmail

func SendEmail(address, title, body string) (err error)

SendEmail 发送邮件

func SendText

func SendText(openID, text string) (err error)

SendText 发送文本

func SetWebGetSignTaskValueForWechatPush

func SetWebGetSignTaskValueForWechatPush(str, openID string) bool

SetWebGetSignTaskValueForWechatPush ..

func WechatServe

func WechatServe(w http.ResponseWriter, r *http.Request)

WechatServe 微信接口服务

Types

type Task

type Task struct {
	ID     string
	Ticket string
	URL    string
}

Task struct

func NewQrcodeTask

func NewQrcodeTask() (task Task, err error)

NewQrcodeTask 获取签名任务二维码

Jump to

Keyboard shortcuts

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