customerService

package
v2.0.2-beta05 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*kernel.BaseClient
}

func NewClient

func NewClient(app kernel.ApplicationInterface) (*Client, error)

func RegisterProvider

func RegisterProvider(app kernel.ApplicationInterface) (*Client, *session.Client, error)

func (*Client) Message

func (comp *Client) Message(message contract.MessageInterface) *Messenger

type Messenger

type Messenger struct {
	Message *contract.MessageInterface

	To      string
	Account string

	Client *Client
}

func NewMessenger

func NewMessenger(client *Client) *Messenger

func (*Messenger) From

func (comp *Messenger) From(account string) *Messenger

func (*Messenger) Send

func (comp *Messenger) Send() (result interface{}, err error)

func (*Messenger) SetBy

func (comp *Messenger) SetBy(account string) *Messenger

func (*Messenger) SetMessage

func (comp *Messenger) SetMessage(message *contract.MessageInterface) *Messenger

func (*Messenger) SetTo

func (comp *Messenger) SetTo(openID string) *Messenger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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