Documentation
¶
Index ¶
- func AddMailTemplate(ctx iris.Context)
- func AddSmsTemplate(ctx iris.Context)
- func ChangeMailTemplateStatus(ctx iris.Context)
- func ChangeSmsTemplateStatus(ctx iris.Context)
- func CreateTemplate(ctx iris.Context)
- func DeleteMailTemplate(ctx iris.Context)
- func GetMailTemplateInfo(ctx iris.Context)
- func GetMailTemplateList(ctx iris.Context)
- func GetMailVendors(ctx iris.Context)
- func GetSmsVendors(ctx iris.Context)
- func GetTemplateInfo(ctx iris.Context)
- func GetTemplateListByPage(ctx iris.Context)
- func UpdateMailTemplate(ctx iris.Context)
- func UpdateTemplate(ctx iris.Context)
- type Info
- type InfoWrapper
- type MailStatusReq
- type MailTemplateReq
- type SmsStatusReq
- type SmsTemplateReq
- type SmsTemplateResp
- type SmsVendors
- type TemplateReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMailTemplate ¶
func AddMailTemplate(ctx iris.Context)
AddMailTemplate * @Summary add a new template for send email
@Accept json
@Produce json
@Router /api/mail_template [post]
@Example
http://localhost/api/mail_template
{"body":"fasfasgasd", "category":2,"name":"电量低超提醒"}
func AddSmsTemplate ¶
func AddSmsTemplate(ctx iris.Context)
func ChangeMailTemplateStatus ¶
func ChangeMailTemplateStatus(ctx iris.Context)
func ChangeSmsTemplateStatus ¶
func ChangeSmsTemplateStatus(ctx iris.Context)
func CreateTemplate ¶
func CreateTemplate(ctx iris.Context)
func DeleteMailTemplate ¶
func DeleteMailTemplate(ctx iris.Context)
func GetMailTemplateInfo ¶
func GetMailTemplateInfo(ctx iris.Context)
func GetMailTemplateList ¶
func GetMailTemplateList(ctx iris.Context)
func GetTemplateInfo ¶
func GetTemplateInfo(ctx iris.Context)
func GetTemplateListByPage ¶
func GetTemplateListByPage(ctx iris.Context)
func UpdateMailTemplate ¶
func UpdateMailTemplate(ctx iris.Context)
func UpdateTemplate ¶
func UpdateTemplate(ctx iris.Context)
Types ¶
type InfoWrapper ¶
type InfoWrapper struct { app.Response Info }
type MailStatusReq ¶
type MailTemplateReq ¶
type SmsStatusReq ¶
type SmsTemplateReq ¶
type SmsTemplateReq struct { Id int `json:"id,omitempty"` // update时可用 Code string `json:"code,omitempty"` // update时可用 Name string `json:"name,omitempty"` // 名称 Params string `json:"params,omitempty"` // 参数列表,可选,无用 Description string `json:"description,omitempty"` // 描述 Vendor string `json:"vendor,omitempty"` // 平台 TemplateId string `json:"templateId,omitempty"` // 平台里的模板编号 }
SmsTemplateReq 创建请求
type SmsTemplateResp ¶
type SmsTemplateResp struct { }
type SmsVendors ¶
type SmsVendors struct {
app.PagerResponse
}
type TemplateReq ¶
type TemplateReq struct { Name string `json:"name,omitempty"` Body string `json:"body,omitempty"` Description string `json:"description,omitempty"` Category string `json:"category,omitempty"` TemplateId string `json:"templateId,omitempty"` Params string `json:"params,omitempty"` Sender int `json:"sender,omitempty"` Signature string `json:"signature,omitempty"` Vendor string `json:"vendor,omitempty"` Status int `json:"status,omitempty"` Code string `json:"code,omitempty"` }
Click to show internal directories.
Click to hide internal directories.