task

package
v0.0.0-...-7a73484 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SEND_SMS_TYPE_captcha = 1 //验证码类型
	SEND_SMS_TYPE_plain   = 2 //普通类型

	SEND_MAIL_TYPE_captcha = 1 //验证码类型
	SEND_MAIL_TYPE_plain   = 2 //普通类型

	DEL_ADD_IS_CRADS   = 1 //卡项
	DEL_ADD_IS_PRODUCT = 2 //商品
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgsAddDelGoods

type ArgsAddDelGoods struct {
	Ids      []int
	Type     int
	CardType int
}

新增卡项或者商品推送到交换机入参

type PublicAddDelGoods

type PublicAddDelGoods interface {
	AddDelGoods(ctx context.Context, args *ArgsAddDelGoods, reply *bool) error
}

type PublicJpush

type PublicJpush interface {
	JpushMsgTask(ctx context.Context, args *public.ArgsPushMsgTask, reply *bool) error
}

新增极光推送任务

type PublicMial

type PublicMial interface {
	SendMail(ctx context.Context, args *SendMailParams, reply *bool)
}

type PublicSms

type PublicSms interface {
	SendSms(ctx context.Context, args *SendSmsParams, reply *bool)
}

type SendMailParams

type SendMailParams struct {
	Email        string
	MsgStr       string
	Type         int    //1=短信邮件 2=普通邮件
	CheckSendNum bool   //是否检查邮箱当日被发送次数
	Subject      string //邮件标题
	FromMail     string //发件人email 非必传
	FromName     string //发件人名称 非必传
}

发送邮件

type SendSmsParams

type SendSmsParams struct {
	Phone        string
	MsgStr       string
	Type         int  //短信类型 1=验证码 2=普通消息
	CheckSendNum bool //是否检查手机当日被发送次数
}

发送短信的参数结构

Directories

Path Synopsis
* * @Author: YangYun * @Date: 2020/4/13 19:13
* * @Author: YangYun * @Date: 2020/4/13 19:13
***************************************** @Description:监管可视化-充值卡充值订单表 @Time : 2020/11/30 17:01 @Author :lixiaojun ******************************************
***************************************** @Description:监管可视化-充值卡充值订单表 @Time : 2020/11/30 17:01 @Author :lixiaojun ******************************************
***************************************** @Author :yinjinlin<yinjinlin_uplook@163.com> @Time : 2020/11/30 下午4:14 ****************************************** ***************************************** @Author :yinjinlin<yinjinlin_uplook@163.com> @Time : 2020/11/18 上午11:32 ******************************************
***************************************** @Author :yinjinlin<yinjinlin_uplook@163.com> @Time : 2020/11/30 下午4:14 ****************************************** ***************************************** @Author :yinjinlin<yinjinlin_uplook@163.com> @Time : 2020/11/18 上午11:32 ******************************************
* * @Author: YangYun * @Date: 2020/4/13 19:13
* * @Author: YangYun * @Date: 2020/4/13 19:13
***************************************** @Description: @Time : 2020/11/13 11:14 @Author :lixiaojun ******************************************
***************************************** @Description: @Time : 2020/11/13 11:14 @Author :lixiaojun ******************************************
* * @Author: Gosin * @Date: 2020/3/5 16:30
* * @Author: Gosin * @Date: 2020/3/5 16:30

Jump to

Keyboard shortcuts

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