smsApi

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetByMessage

func GetByMessage(ctx iris.Context)

func SendSms

func SendSms(ctx iris.Context)

Types

type Req

type Req struct {
	Template      string      `json:"template"`         // template of this mail
	TemplateParam interface{} `json:"params"`           // template params
	Sender        string      `json:"sender,omitempty"` // sms send account on the platform
	Signature     string      `json:"signature,omitempty"`
	Receiver      string      `json:"receiver"` // receiver list(with comma if multi)
}

type Resp

type Resp struct {
	app.Response
	MessageId int `json:"messageId,omitempty"`
}

type RespWrapper

type RespWrapper struct {
	app.Response
	SmsInfoResp
}

type SmsInfoResp

type SmsInfoResp struct {
	Id         int    `json:"id,omitempty"`
	MessageId  int    `json:"messageId,omitempty"` // message
	TemplateId int    `json:"templateId,omitempty"`
	SenderId   int    `json:"senderId,omitempty"`
	Params     string `json:"params,omitempty"`
	Status     int    `json:"status,omitempty"`
	CreateTime string `json:"createTime,omitempty"`
	UpdateTime string `json:"updateTime,omitempty"`
}

Jump to

Keyboard shortcuts

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