goProject/.svn/pristine/8c/8c362c8854daad6cfdf50419e61fd334d0d69988.svn-base

29 lines
644 B
Plaintext
Raw Permalink Normal View History

2025-01-06 16:21:36 +08:00
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,
}
}