build email

This commit is contained in:
Tue 2022-11-17 14:15:08 +07:00
parent bf0cbdfbea
commit c4ea51c55e
1 changed files with 6 additions and 2 deletions

View File

@ -19,9 +19,13 @@ const (
KeyCreateSupplierUser = "create_user" KeyCreateSupplierUser = "create_user"
) )
var (
c *Client
)
// GetEmail ... // GetEmail ...
func GetEmail() *Client { func GetEmail() *Client {
return &Client{} return c
} }
// Client ... // Client ...
@ -40,7 +44,7 @@ func NewClient(cfg Config) (*Client, error) {
return nil, fmt.Errorf("nats connect failed: %v", err) return nil, fmt.Errorf("nats connect failed: %v", err)
} }
c := &Client{ c = &Client{
Config: cfg, Config: cfg,
natsServer: natsio.GetServer(), natsServer: natsio.GetServer(),
natsJetStream: natsio.GetJetStream(), natsJetStream: natsio.GetJetStream(),