logic

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelAuthEventLogic

func CancelAuthEventLogic(data []byte, ww wework.IWeWork)

func CreateAuthEventLogic

func CreateAuthEventLogic(data []byte, ww wework.IWeWork)

CreateAuthEventLogic 第三方应用管理员授权逻辑 auth_code 10分钟有效

func Migrate

func Migrate(dsn string)

func ResetPermanentCodeEventLogic

func ResetPermanentCodeEventLogic(data []byte, ww wework.IWeWork)

func SuiteTicketEventLogic

func SuiteTicketEventLogic(data []byte, ww wework.IWeWork)

Types

type BizData

type BizData struct {
	xml.Name   `xml:"xml"`
	Text       string `xml:",chardata"`
	ToUserName string `xml:"ToUserName"`
	Encrypt    string `xml:"Encrypt"`
	AgentID    string `xml:"AgentID"`
}

数据回调通知 企业安装应用时会把相应数据通知到回调URL

type BizEvent

type BizEvent struct {
	XMLName   xml.Name `xml:"xml"`
	Text      string   `xml:",chardata"`
	SuiteId   string   `xml:"SuiteId"`
	InfoType  InfoType `xml:"InfoType"`
	TimeStamp int64    `xml:"TimeStamp"`
}

type CreateAuthEvent

type CreateAuthEvent struct {
	BizEvent
	AuthCode string `xml:"AuthCode"`
	State    string `xml:"State"`
}

type EventPushQueryBinding

type EventPushQueryBinding struct {
	MsgSign   string `form:"msg_signature" binding:"required"`
	Timestamp string `form:"timestamp" binding:"required"`
	Nonce     string `form:"nonce" binding:"required"`
	EchoStr   string `form:"echostr"`
	CorpId    string `form:"corpid"`
}

type InfoType

type InfoType string
const (
	SuiteTicket        InfoType = "suite_ticket"
	CreateAuth         InfoType = "create_auth"
	ChangeAuth         InfoType = "change_auth"
	CancelAuth         InfoType = "cancel_auth"
	ResetPermanentCode InfoType = "reset_permanent_code"
)

type ResetPermanentCodeEvent

type ResetPermanentCodeEvent struct {
	BizEvent
	AuthCode string `xml:"AuthCode"`
}

type SuiteTicketEvent

type SuiteTicketEvent struct {
	BizEvent
	SuiteTicket string `xml:"SuiteTicket"`
}

Jump to

Keyboard shortcuts

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