goProject/trunk/goutil/smsUtil/qcloud/commonField.go
皮蛋13361098506 1b77f62820 初始化项目
2025-01-06 16:01:02 +08:00

29 lines
644 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package qcloud
// 公有字段
type commonField struct {
// 签名
Sig string `json:"sig"`
// Unix时间戳
Time int64 `json:"time"`
// 通道扩展码,可选字段,默认没有开通(需要填空)。
Extend string `json:"extend"`
// 用户的session内容腾讯server回包中会原样返回
Ext string `json:"ext"`
// 接收方
// 单发短信时填mobile
// 群发时填[]mobile
Tel interface{} `json:"tel"`
}
func newCommonField(sig string, time int64, extend string, ext string, tel interface{}) *commonField {
return &commonField{
Sig: sig,
Time: time,
Extend: extend,
Ext: ext,
Tel: tel,
}
}