handler

package
v0.0.0-...-0f6a860 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sms

type Sms struct {
	Repo        *service.SendRepo
	SmsProvider provider.Driver
	// contains filtered or unexported fields
}

Sms ...

func NewSms

func NewSms() *Sms

func (*Sms) Create

func (e *Sms) Create(ctx context.Context, in *sms.CreateTempRequest, rsp *sms.CreateTempResponse) error

func (*Sms) DownloadObj

func (e *Sms) DownloadObj(m *models.Template) (obj *sms.SmsStruct)

func (*Sms) List

func (e *Sms) List(ctx context.Context, req *sms.ListRequest, rsp *sms.ListResponse) error

func (*Sms) SendList

func (e *Sms) SendList(ctx context.Context, req *sms.SendPage, rsp *sms.SendPage) error

SendList ...

func (*Sms) Template

func (e *Sms) Template(ctx context.Context, req *sms.SmsStruct, rsp *sms.SmsStruct) (err error)

Template ...

func (*Sms) TemplateList

func (e *Sms) TemplateList(ctx context.Context, req *sms.TemplatePage, rsp *sms.TemplatePage) error

TemplateList ...

type YunPian

type YunPian struct {
	Repo        *service.SendRepo
	SmsProvider provider.Driver
	// contains filtered or unexported fields
}

Send ...

func NewYunPian

func NewYunPian() *YunPian

func (*YunPian) BizType

BizType is a single request handler called via client.Call or the generated client code

func (*YunPian) Code

Code is a single request handler called via client.Call or the generated client code

func (*YunPian) Notice

Notice ...

func (*YunPian) Validate

func (e *YunPian) Validate(ctx context.Context, req *yunpian.ValidateRequest, rsp *yunpian.ValidateResponse) (err error)

Validate is a server side stream handler called via client.Stream or the generated client code

Jump to

Keyboard shortcuts

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