Documentation
¶
Index ¶
- type Sms
- func (e *Sms) Create(ctx context.Context, in *sms.CreateTempRequest, rsp *sms.CreateTempResponse) error
- func (e *Sms) DownloadObj(m *models.Template) (obj *sms.SmsStruct)
- func (e *Sms) List(ctx context.Context, req *sms.ListRequest, rsp *sms.ListResponse) error
- func (e *Sms) SendList(ctx context.Context, req *sms.SendPage, rsp *sms.SendPage) error
- func (e *Sms) Template(ctx context.Context, req *sms.SmsStruct, rsp *sms.SmsStruct) (err error)
- func (e *Sms) TemplateList(ctx context.Context, req *sms.TemplatePage, rsp *sms.TemplatePage) error
- type YunPian
- func (e *YunPian) BizType(ctx context.Context, req *yunpian.BizTypeResponse, ...) error
- func (e *YunPian) Code(ctx context.Context, req *yunpian.CodeResource, rsp *yunpian.CodeResponse) error
- func (e *YunPian) Notice(ctx context.Context, req *yunpian.EventResource, rsp *yunpian.EventResource) error
- func (e *YunPian) Validate(ctx context.Context, req *yunpian.ValidateRequest, ...) (err error)
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 (*Sms) Create ¶
func (e *Sms) Create(ctx context.Context, in *sms.CreateTempRequest, rsp *sms.CreateTempResponse) error
func (*Sms) List ¶
func (e *Sms) List(ctx context.Context, req *sms.ListRequest, rsp *sms.ListResponse) error
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 ¶
func (e *YunPian) BizType(ctx context.Context, req *yunpian.BizTypeResponse, rsp *yunpian.BizTypeResponse) error
BizType is a single request handler called via client.Call or the generated client code
func (*YunPian) Code ¶
func (e *YunPian) Code(ctx context.Context, req *yunpian.CodeResource, rsp *yunpian.CodeResponse) error
Code is a single request handler called via client.Call or the generated client code
func (*YunPian) Notice ¶
func (e *YunPian) Notice(ctx context.Context, req *yunpian.EventResource, rsp *yunpian.EventResource) error
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
Click to show internal directories.
Click to hide internal directories.