account

package
v0.0.0-...-7becda7 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

README

账号管理.

  • 二维码管理在 qrcode 模块.

Documentation

Overview

账号管理.

二维码管理在 qrcode 模块.

Index

Constants

View Source
const (
	EventTypeQualificationVerifySuccess core.EventType = "qualification_verify_success" // 资质认证成功(此时立即获得接口权限)
	EventTypeQualificationVerifyFail    core.EventType = "qualification_verify_fail"    // 资质认证失败
	EventTypeNamingVerifySuccess        core.EventType = "naming_verify_success"        // 名称认证成功(即命名成功)
	EventTypeNamingVerifyFail           core.EventType = "naming_verify_fail"           // 名称认证失败(这时虽然客户端不打勾,但仍有接口权限)
	EventTypeAnnualRenew                core.EventType = "annual_renew"                 // 年审通知
	EventTypeVerifyExpired              core.EventType = "verify_expired"               // 认证过期失效通知
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnualRenewEvent

type AnnualRenewEvent struct {
	XMLName struct{} `xml:"xml" json:"-"`
	core.MsgHeader
	EventType   core.EventType `xml:"Event"       json:"Event"`
	ExpiredTime int64          `xml:"ExpiredTime" json:"ExpiredTime"` // 有效期 (整形),指的是时间戳,将于该时间戳认证过期,需尽快年审
}

年审通知事件

func GetAnnualRenewEvent

func GetAnnualRenewEvent(msg *core.MixedMsg) *AnnualRenewEvent

type NamingVerifyFailEvent

type NamingVerifyFailEvent struct {
	XMLName struct{} `xml:"xml" json:"-"`
	core.MsgHeader
	EventType  core.EventType `xml:"Event"      json:"Event"`
	FailTime   int64          `xml:"FailTime"   json:"FailTime"`   // 失败发生时间 (整形),时间戳
	FailReason string         `xml:"FailReason" json:"FailReason"` // 认证失败的原因
}

名称认证失败(这时虽然客户端不打勾,但仍有接口权限)事件

func GetNamingVerifyFailEvent

func GetNamingVerifyFailEvent(msg *core.MixedMsg) *NamingVerifyFailEvent

type NamingVerifySuccessEvent

type NamingVerifySuccessEvent struct {
	XMLName struct{} `xml:"xml" json:"-"`
	core.MsgHeader
	EventType   core.EventType `xml:"Event"       json:"Event"`
	ExpiredTime int64          `xml:"ExpiredTime" json:"ExpiredTime"` // 有效期 (整形),指的是时间戳,将于该时间戳认证过期
}

名称认证成功(即命名成功)事件

func GetNamingVerifySuccessEvent

func GetNamingVerifySuccessEvent(msg *core.MixedMsg) *NamingVerifySuccessEvent

type QualificationVerifyFailEvent

type QualificationVerifyFailEvent struct {
	XMLName struct{} `xml:"xml" json:"-"`
	core.MsgHeader
	EventType  core.EventType `xml:"Event"      json:"Event"`
	FailTime   int64          `xml:"FailTime"   json:"FailTime"`   // 失败发生时间 (整形),时间戳
	FailReason string         `xml:"FailReason" json:"FailReason"` // 认证失败的原因
}

资质认证失败事件

func GetQualificationVerifyFailEvent

func GetQualificationVerifyFailEvent(msg *core.MixedMsg) *QualificationVerifyFailEvent

type QualificationVerifySuccessEvent

type QualificationVerifySuccessEvent struct {
	XMLName struct{} `xml:"xml" json:"-"`
	core.MsgHeader
	EventType   core.EventType `xml:"Event"       json:"Event"`
	ExpiredTime int64          `xml:"ExpiredTime" json:"ExpiredTime"` // 有效期 (整形),指的是时间戳,将于该时间戳认证过期
}

资质认证成功(此时立即获得接口权限)事件

func GetQualificationVerifySuccessEvent

func GetQualificationVerifySuccessEvent(msg *core.MixedMsg) *QualificationVerifySuccessEvent

type VerifyExpiredEvent

type VerifyExpiredEvent struct {
	XMLName struct{} `xml:"xml" json:"-"`
	core.MsgHeader
	EventType   core.EventType `xml:"Event"       json:"Event"`
	ExpiredTime int64          `xml:"ExpiredTime" json:"ExpiredTime"` // 有效期 (整形),指的是时间戳,表示已于该时间戳认证过期,需要重新发起微信认证
}

认证过期失效通知事件

func GetVerifyExpiredEvent

func GetVerifyExpiredEvent(msg *core.MixedMsg) *VerifyExpiredEvent

Jump to

Keyboard shortcuts

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