v1

package
v1.1.32 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by lark suite oapi sdk gen

Code generated by lark suite oapi sdk gen

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetAppOpenEventHandler

func SetAppOpenEventHandler(conf *config.Config, fn func(ctx *core.Context, event *AppOpenEvent) error)

func SetAppStatusChangeEventHandler

func SetAppStatusChangeEventHandler(conf *config.Config, fn func(ctx *core.Context, event *AppStatusChangeEvent) error)

func SetAppUninstalledEventHandler

func SetAppUninstalledEventHandler(conf *config.Config, fn func(ctx *core.Context, event *AppUninstalledEvent) error)

func SetOrderPaidEventHandler

func SetOrderPaidEventHandler(conf *config.Config, fn func(ctx *core.Context, event *OrderPaidEvent) error)

Types

type AppOpenEvent

type AppOpenEvent struct {
	*model.BaseEvent
	Event *AppOpenEventData `json:"event"`
}

type AppOpenEventData

type AppOpenEventData struct {
	AppId      string    `json:"app_id,omitempty"`
	TenantKey  string    `json:"tenant_key,omitempty"`
	Type       string    `json:"type,omitempty"`
	Applicants []*UserId `json:"applicants,omitempty"`
	Installer  *UserId   `json:"installer,omitempty"`
}

type AppOpenEventHandler

type AppOpenEventHandler struct {
	Fn func(*core.Context, *AppOpenEvent) error
}

func (*AppOpenEventHandler) GetEvent

func (h *AppOpenEventHandler) GetEvent() interface{}

func (*AppOpenEventHandler) Handle

func (h *AppOpenEventHandler) Handle(ctx *core.Context, event interface{}) error

type AppStatusChangeEvent

type AppStatusChangeEvent struct {
	*model.BaseEvent
	Event *AppStatusChangeEventData `json:"event"`
}

type AppStatusChangeEventData

type AppStatusChangeEventData struct {
	AppId     string `json:"app_id,omitempty"`
	TenantKey string `json:"tenant_key,omitempty"`
	Type      string `json:"type,omitempty"`
	Status    string `json:"status,omitempty"`
}

type AppStatusChangeEventHandler

type AppStatusChangeEventHandler struct {
	Fn func(*core.Context, *AppStatusChangeEvent) error
}

func (*AppStatusChangeEventHandler) GetEvent

func (h *AppStatusChangeEventHandler) GetEvent() interface{}

func (*AppStatusChangeEventHandler) Handle

func (h *AppStatusChangeEventHandler) Handle(ctx *core.Context, event interface{}) error

type AppUninstalledEvent

type AppUninstalledEvent struct {
	*model.BaseEvent
	Event *AppUninstalledEventData `json:"event"`
}

type AppUninstalledEventData

type AppUninstalledEventData struct {
	AppId     string `json:"app_id,omitempty"`
	TenantKey string `json:"tenant_key,omitempty"`
	Type      string `json:"type,omitempty"`
}

type AppUninstalledEventHandler

type AppUninstalledEventHandler struct {
	Fn func(*core.Context, *AppUninstalledEvent) error
}

func (*AppUninstalledEventHandler) GetEvent

func (h *AppUninstalledEventHandler) GetEvent() interface{}

func (*AppUninstalledEventHandler) Handle

func (h *AppUninstalledEventHandler) Handle(ctx *core.Context, event interface{}) error

type OrderPaidEvent

type OrderPaidEvent struct {
	*model.BaseEvent
	Event *OrderPaidEventData `json:"event"`
}

type OrderPaidEventData

type OrderPaidEventData struct {
	AppId         string `json:"app_id,omitempty"`
	TenantKey     string `json:"tenant_key,omitempty"`
	Type          string `json:"type,omitempty"`
	OrderId       string `json:"order_id,omitempty"`
	PricePlanId   string `json:"price_plan_id,omitempty"`
	PricePlanType string `json:"price_plan_type,omitempty"`
	Seats         int    `json:"seats,omitempty"`
	BuyCount      int    `json:"buy_count,omitempty"`
	CreateTime    string `json:"create_time,omitempty"`
	PayTime       string `json:"pay_time,omitempty"`
	BuyType       string `json:"buy_type,omitempty"`
	SrcOrderId    string `json:"src_order_id,omitempty"`
	OrderPayPrice int    `json:"order_pay_price,omitempty"`
}

type OrderPaidEventHandler

type OrderPaidEventHandler struct {
	Fn func(*core.Context, *OrderPaidEvent) error
}

func (*OrderPaidEventHandler) GetEvent

func (h *OrderPaidEventHandler) GetEvent() interface{}

func (*OrderPaidEventHandler) Handle

func (h *OrderPaidEventHandler) Handle(ctx *core.Context, event interface{}) error

type UserId added in v1.1.1

type UserId struct {
	OpenId string `json:"open_id,omitempty"`
	UserId string `json:"user_id,omitempty"`
}

Jump to

Keyboard shortcuts

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