customerService

package
v3.2.55 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 10 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 {
	BaseClient *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(ctx context.Context, 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(ctx context.Context) (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