Documentation
¶
Index ¶
- Constants
- Variables
- type AppIcp
- type ApplySignatureIdentRequest
- type ApplySignatureIdentResponse
- type ApplySmsSignatureRequest
- type ApplySmsSignatureRequestV2
- type ApplySmsSignatureResponse
- type ApplySmsTemplateRequest
- type ApplySmsTemplateResponse
- type ApplyTemplateV2Request
- type ApplyTemplateV2Response
- type ApplyVmsTemplateRequest
- type ApplyVmsTemplateResponse
- type Area
- type BatchBindSignatureIdentRequest
- type BatchBindSignatureIdentResponse
- type BindSignatureRequest
- type BindSignatureResponse
- type BindSignaturesResp
- type BindTrafficDrivingParamsRequest
- type BindTrafficDrivingParamsResponse
- type BulkCreateTobTrafficDrivingLinkItem
- type BulkCreateTobTrafficDrivingLinkRequest
- type BulkCreateTobTrafficDrivingLinkResponse
- type BulkCreateTobTrafficDrivingPhoneRequest
- type BulkCreateTobTrafficDrivingPhoneResponse
- type BusinessInfo
- type CarrierReviewInfo
- type CertificateType
- type CheckSmsVerifyCodeRequest
- type CheckSmsVerifyCodeResponse
- type ConversionRequest
- type ConversionResponse
- type CreateTobTrafficDrivingPhoneItem
- type DeleteSignatureRequest
- type DeleteSignatureResponse
- type DeleteSmsTemplateRequest
- type DeleteSmsTemplateResponse
- type DeleteTobTrafficDrivingLinkRequest
- type DeleteTobTrafficDrivingLinkResponse
- type DeleteTobTrafficDrivingPhoneRequest
- type DeleteTobTrafficDrivingPhoneResponse
- type DocType
- type GetSignatureAndOrderListRequest
- type GetSignatureAndOrderListResponse
- type GetSignatureIdentListRequest
- type GetSignatureIdentListResponse
- type GetSmsSendDetailsRequest
- type GetSmsSendDetailsResponse
- type GetSmsTemplateAndOrderListRequest
- type GetSmsTemplateAndOrderListResponse
- type GetSubAccountDetailRequest
- type GetSubAccountDetailResponse
- type GetSubAccountListRequest
- type GetSubAccountListResponse
- type GetTobTrafficDrivingLinkListRequest
- type GetTobTrafficDrivingLinkListResponse
- type GetTobTrafficDrivingPhoneListRequest
- type GetTobTrafficDrivingPhoneListResponse
- type GetVmsTemplateStatusRequest
- type GetVmsTemplateStatusResponse
- type InsertSmsSubAccountReq
- type InsertSmsSubAccountResponse
- type ListRelationTemplateRequest
- type ListRelationTemplateResponse
- type ListSecondTemplateRequest
- type ListSecondTemplateResponse
- type ListSecondTemplateResult
- type ListSmsTemplateV2Request
- type ListSmsTemplateV2Response
- type ListSubContentRequest
- type ListSubContentResponse
- type ListSubContentResult
- type ListTemplateV2Result
- type PersonInfo
- type ReportStatus
- type SMS
- func (p *SMS) ApplySignatureIdent(req *ApplySignatureIdentRequest) (*ApplySignatureIdentResponse, int, error)
- func (p *SMS) ApplySmsSignature(req *ApplySmsSignatureRequest) (*ApplySmsSignatureResponse, int, error)
- func (p *SMS) ApplySmsSignatureV2(req *ApplySmsSignatureRequestV2) (*ApplySmsSignatureResponse, int, error)
- func (p *SMS) ApplySmsTemplate(req *ApplySmsTemplateRequest) (*ApplySmsTemplateResponse, int, error)
- func (p *SMS) ApplySmsTemplateV2(req *ApplyTemplateV2Request) (*ApplyTemplateV2Response, int, error)
- func (p *SMS) ApplyVmsTemplate(req *ApplyVmsTemplateRequest) (*ApplyVmsTemplateResponse, int, error)
- func (p *SMS) BatchBindSignatureIdent(req *BatchBindSignatureIdentRequest) (*BatchBindSignatureIdentResponse, int, error)
- func (p *SMS) BatchSend(req *SmsBatchRequest) (*SmsResponse, int, error)
- func (p *SMS) BindSignatures(req *BindSignatureRequest) (*BindSignatureResponse, int, error)
- func (p *SMS) BindTrafficDrivingParams(req *BindTrafficDrivingParamsRequest) (*BindTrafficDrivingParamsResponse, int, error)
- func (p *SMS) BulkCreateTobTrafficDrivingLink(req *BulkCreateTobTrafficDrivingLinkRequest) (*BulkCreateTobTrafficDrivingLinkResponse, int, error)
- func (p *SMS) BulkCreateTobTrafficDrivingPhone(req *BulkCreateTobTrafficDrivingPhoneRequest) (*BulkCreateTobTrafficDrivingPhoneResponse, int, error)
- func (p *SMS) CheckVerifyCode(req *CheckSmsVerifyCodeRequest) (*CheckSmsVerifyCodeResponse, int, error)
- func (p *SMS) Conversion(req *ConversionRequest) (*ConversionResponse, int, error)
- func (p *SMS) DeleteSignature(req *DeleteSignatureRequest) (*DeleteSignatureResponse, int, error)
- func (p *SMS) DeleteSmsTemplate(req *DeleteSmsTemplateRequest) (*DeleteSmsTemplateResponse, int, error)
- func (p *SMS) DeleteTobTrafficDrivingLink(req *DeleteTobTrafficDrivingLinkRequest) (*DeleteTobTrafficDrivingLinkResponse, int, error)
- func (p *SMS) DeleteTobTrafficDrivingPhone(req *DeleteTobTrafficDrivingPhoneRequest) (*DeleteTobTrafficDrivingPhoneResponse, int, error)
- func (p *SMS) GetAPIInfo(api string) *base.ApiInfo
- func (p *SMS) GetRelationTemplateList(req *ListRelationTemplateRequest) (*ListRelationTemplateResponse, int, error)
- func (p *SMS) GetServiceInfo(region string) *base.ServiceInfo
- func (p *SMS) GetSignatureAndOrderList(req *GetSignatureAndOrderListRequest) (*GetSignatureAndOrderListResponse, int, error)
- func (p *SMS) GetSignatureIdentList(req *GetSignatureIdentListRequest) (*GetSignatureIdentListResponse, int, error)
- func (p *SMS) GetSmsSendDetails(req *GetSmsSendDetailsRequest) (*GetSmsSendDetailsResponse, int, error)
- func (p *SMS) GetSmsTemplateAndOrderList(req *GetSmsTemplateAndOrderListRequest) (*GetSmsTemplateAndOrderListResponse, int, error)
- func (p *SMS) GetSubAccountDetail(req *GetSubAccountDetailRequest) (*GetSubAccountDetailResponse, int, error)
- func (p *SMS) GetSubAccountList(req *GetSubAccountListRequest) (*GetSubAccountListResponse, int, error)
- func (p *SMS) GetTobTrafficDrivingLinkList(req *GetTobTrafficDrivingLinkListRequest) (*GetTobTrafficDrivingLinkListResponse, int, error)
- func (p *SMS) GetTobTrafficDrivingPhoneList(req *GetTobTrafficDrivingPhoneListRequest) (*GetTobTrafficDrivingPhoneListResponse, int, error)
- func (p *SMS) GetVmsTemplateStatus(req *GetVmsTemplateStatusRequest) (*GetVmsTemplateStatusResponse, int, error)
- func (p *SMS) InsertSmsSubAccount(req *InsertSmsSubAccountReq) (*InsertSmsSubAccountResponse, int, error)
- func (p *SMS) ListSecondTemplate(req *ListSecondTemplateRequest) (*ListSecondTemplateResponse, int, error)
- func (p *SMS) ListSmsTemplateV2(req *ListSmsTemplateV2Request) (*ListSmsTemplateV2Response, int, error)
- func (p *SMS) ListSubContent(req *ListSubContentRequest) (*ListSubContentResponse, int, error)
- func (p *SMS) Send(req *SmsRequest) (*SmsResponse, int, error)
- func (p *SMS) SendVerifyCode(req *SmsVerifyCodeRequest) (*SmsResponse, int, error)
- func (p *SMS) SendVms(req *SendVmsRequest) (*SendVmsResponse, int, error)
- func (s *SMS) SetHost(host string)
- func (s *SMS) SetRegion(region string)
- func (s *SMS) SetSchema(schema string)
- func (p *SMS) UpdateSignatureIdent(req *UpdateSignatureIdentificationRequest) (*UpdateSignatureIdentificationResponse, int, error)
- func (p *SMS) UpdateSmsSignature(req *UpdateSmsSignatureRequestV2) (*UpdateSmsSignatureResponse, int, error)
- func (p *SMS) UpdateTobTrafficDrivingPhone(req *UpdateTobTrafficDrivingPhoneRequest) (*UpdateTobTrafficDrivingPhoneResponse, int, error)
- type SecondTemplate
- type SecondTemplateResp
- type SendDetailsResult
- type SendLogStatus
- type SendVmsRequest
- type SendVmsResponse
- type ShortUrlConfig
- type ShortUrlEnableStatus
- type SignAuthFile
- type SignPurpose
- type SignSourceType
- type SignatureIdentList
- type SmsBatchMessages
- type SmsBatchRequest
- type SmsChannelType
- type SmsOrderStatus
- type SmsRequest
- type SmsResponse
- type SmsResult
- type SmsSignatureInfo
- type SmsSubAccountDetail
- type SmsSubAccountInfo
- type SmsTemplateInfo
- type SmsVerifyCodeRequest
- type SubContent
- type TemplateParamWithTrafficDriving
- type TemplateParamsV2
- type TemplateV2
- type TobTrafficDrivingLinkJson
- type TobTrafficDrivingPhoneJson
- type TobTrafficDrivingPhoneNumberType
- type TobTrafficDrivingPhonePersonType
- type Trademark
- type UpdateSignatureIdentificationRequest
- type UpdateSignatureIdentificationResponse
- type UpdateSmsSignatureRequestV2
- type UpdateSmsSignatureResponse
- type UpdateTobTrafficDrivingPhoneRequest
- type UpdateTobTrafficDrivingPhoneResponse
- type VmsElement
- type VmsResult
- type VmsTemplateInfo
Constants ¶
View Source
const ( DefaultRegion = "cn-north-1" ServiceVersion20200101 = "2020-01-01" ServiceVersion20210101 = "2021-01-01" ServiceVersion20210111 = "2021-01-11" ServiceVersion20250101 = "2025-01-01" ServiceName = "volcSMS" )
View Source
const ( DefaultSendLog = SendLogStatus(0) SendNoReceipt = SendLogStatus(1) SendFail = SendLogStatus(2) SendAndReceipt = SendLogStatus(3) Verify = SendLogStatus(4) Click = SendLogStatus(5) )
View Source
const ( SignSourceCompany = 1 // 公司全称/简称 SignSourceApp = 2 // APP全称 SignSourceBrand = 3 // 商标全称 )
签名来源类型
View Source
const ( SourceTypeText = "text/string" SourceTypeImageJPG = "image/jpg" SourceTypeImagePNG = "image/png" SourceTypeImageGIF = "image/gif" SourceTypeVideo = "video/mp4" SourceTypeAudio = "audio/mp3" )
Variables ¶
View Source
var ( ServiceInfo = map[string]*base.ServiceInfo{ DefaultRegion: { Timeout: 5 * time.Second, Host: "sms.volcengineapi.com", Scheme: "https", Header: http.Header{ "Accept": []string{"application/json"}, }, }, } ApiInfoList = map[string]*base.ApiInfo{ "SendSms": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"SendSms"}, "Version": []string{ServiceVersion20200101}, }, }, "SendBatchSms": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"SendBatchSms"}, "Version": []string{ServiceVersion20210101}, }, }, "SendSmsVerifyCode": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"SendSmsVerifyCode"}, "Version": []string{ServiceVersion20200101}, }, }, "CheckSmsVerifyCode": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"CheckSmsVerifyCode"}, "Version": []string{ServiceVersion20200101}, }, }, "Conversion": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"Conversion"}, "Version": []string{ServiceVersion20200101}, }, }, "GetSmsTemplateAndOrderList": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetSmsTemplateAndOrderList"}, "Version": []string{ServiceVersion20210111}, }, }, "ApplySmsTemplate": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ApplySmsTemplate"}, "Version": []string{ServiceVersion20210111}, }, }, "DeleteSmsTemplate": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"DeleteSmsTemplate"}, "Version": []string{ServiceVersion20210111}, }, }, "GetSubAccountList": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetSubAccountList"}, "Version": []string{ServiceVersion20210111}, }, }, "GetSubAccountDetail": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetSubAccountDetail"}, "Version": []string{ServiceVersion20210111}, }, }, "InsertSubAccount": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"InsertSubAccount"}, "Version": []string{ServiceVersion20210111}, }, }, "GetSignatureAndOrderList": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetSignatureAndOrderList"}, "Version": []string{ServiceVersion20250101}, }, }, "ApplySmsSignature": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ApplySmsSignature"}, "Version": []string{ServiceVersion20210111}, }, }, "DeleteSignature": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"DeleteSignature"}, "Version": []string{ServiceVersion20250101}, }, }, "ApplyVmsTemplate": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ApplyVmsTemplate"}, "Version": []string{ServiceVersion20210111}, }, }, "GetVmsTemplateStatus": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"GetVmsTemplateStatus"}, "Version": []string{ServiceVersion20210111}, }, }, "GetSmsSendDetails": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"GetSmsSendDetails"}, "Version": []string{ServiceVersion20210111}, }, }, "ApplySignatureIdent": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ApplySignatureIdent"}, "Version": []string{ServiceVersion20210111}, }, }, "GetSignatureIdentList": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetSignatureIdentList"}, "Version": []string{ServiceVersion20210111}, }, }, "BatchBindSignatureIdent": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"BatchBindSignatureIdent"}, "Version": []string{ServiceVersion20210111}, }, }, "ApplySmsSignatureV2": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ApplySmsSignatureV2"}, "Version": []string{ServiceVersion20250101}, }, }, "UpdateSmsSignature": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"UpdateSmsSignature"}, "Version": []string{ServiceVersion20250101}, }, }, "UpdateSignatureIdentification": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"UpdateSignatureIdent"}, "Version": []string{ServiceVersion20210111}, }, }, "BulkCreateTobTrafficDrivingLink": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"BulkCreateTobTrafficDrivingLink"}, "Version": []string{ServiceVersion20210111}, }, }, "BulkCreateTobTrafficDrivingPhone": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"BulkCreateTobTrafficDrivingPhone"}, "Version": []string{ServiceVersion20210111}, }, }, "DeleteTobTrafficDrivingLink": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"DeleteTobTrafficDrivingLinkSDK"}, "Version": []string{ServiceVersion20210111}, }, }, "DeleteTobTrafficDrivingPhone": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"DeleteTobTrafficDrivingPhoneSDK"}, "Version": []string{ServiceVersion20210111}, }, }, "GetRelationTemplateList": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListRelationTemplateSDK"}, "Version": []string{ServiceVersion20210111}, }, }, "GetTobTrafficDrivingLinkList": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetTobTrafficDrivingLinkList"}, "Version": []string{ServiceVersion20210111}, }, }, "GetTobTrafficDrivingPhoneList": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetTobTrafficDrivingPhoneList"}, "Version": []string{ServiceVersion20210111}, }, }, "UpdateTobTrafficDrivingPhone": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"UpdateTobTrafficDrivingPhoneSDK"}, "Version": []string{ServiceVersion20210111}, }, }, "BindTrafficDrivingParams": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"BindTrafficDrivingParamsSDK"}, "Version": []string{ServiceVersion20210111}, }, }, "ApplySmsTemplateV2": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ApplySmsTemplateV2SDK"}, "Version": []string{ServiceVersion20210111}, }, }, "ListSmsTemplateV2": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListSmsTemplateV2SDK"}, "Version": []string{ServiceVersion20210111}, }, }, "BindSignatures": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"BindSignaturesSDK"}, "Version": []string{ServiceVersion20210111}, }, }, "ListSecondTemplate": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListSecondTemplate"}, "Version": []string{ServiceVersion20210111}, }, }, "ListSubContent": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListSubContent"}, "Version": []string{ServiceVersion20210111}, }, }, } )
View Source
var DefaultInstance = NewInstance()
DefaultInstance 默认的实例
Functions ¶
This section is empty.
Types ¶
type AppIcp ¶ added in v1.0.207
type AppIcp struct {
AppIcpFilling string `json:"appIcpFilling"`
AppIcpFileList []SignAuthFile `json:"appIcpFileList"` // AppIcp相关的文件信息
}
type ApplySignatureIdentRequest ¶ added in v1.0.163
type ApplySignatureIdentRequest struct {
Id int64 `json:"id"` // 资质id,重新编辑需要提供之前的id
Purpose int32 `json:"purpose"` // 资质用途; 1.自用,2.他用
MaterialName string `json:"materialName"` // 资质名称
BusinessInfo BusinessInfo `json:"businessInfo"` // 企业信息
OperatorPersonInfo PersonInfo `json:"operatorPerson"` // 经办人信息
ResponsiblePersonInfo PersonInfo `json:"responsiblePersonInfo"` // 责任人信息
LegalPersonInfo PersonInfo `json:"legalPerson"` // 法人信息
PowerOfAttorney []SignAuthFile `json:"powerOfAttorney"` // 授权书
OtherMaterials []SignAuthFile `json:"otherMaterials"` // 其他材料
EffectSignatures []string `json:"effectSignatures"` // 生效签名范围
}
资质相关
type ApplySignatureIdentResponse ¶ added in v1.0.163
type ApplySignatureIdentResponse struct {
ResponseMetadata base.ResponseMetadata
Result struct {
Id int64 `json:"id"`
}
}
type ApplySmsSignatureRequest ¶
type ApplySmsSignatureRequest struct {
SubAccount string `json:"subAccount"`
Content string `json:"content"`
Source string `json:"source"`
Domain string `json:"domain"`
Desc string `json:"desc,omitempty"`
UploadFileList []SignAuthFile `json:"uploadFileList"` // Deprecated
Purpose int `json:"purpose"`
SignatureIdentificationID int64 `json:"signatureIdentificationID"` // 绑定的资质id
}
type ApplySmsSignatureRequestV2 ¶ added in v1.0.207
type ApplySmsSignatureRequestV2 struct {
SubAccounts []string `json:"subAccounts"`
Content string `json:"content"`
Source int `json:"source"`
Domain string `json:"domain"`
Desc string `json:"desc,omitempty"`
UploadFileList []SignAuthFile `json:"uploadFileList"`
Purpose int `json:"purpose"`
SignatureIdentificationID int64 `json:"signatureIdentificationID"` // 绑定的资质id
AppIcp AppIcp `json:"appIcp"` // app icp信息
Trademark Trademark `json:"trademark"` // 商标信息
Scene string `json:"scene"` // 业务场景
ChannelTypes []string `json:"channelTypes"`
}
type ApplySmsSignatureResponse ¶
type ApplySmsSignatureResponse struct {
ResponseMetadata base.ResponseMetadata
Result *SmsSignatureInfo
}
type ApplySmsTemplateRequest ¶
type ApplySmsTemplateRequest struct {
SubAccount string `json:"subAccount"`
Area Area `json:"area"`
ChannelType SmsChannelType `json:"channelType"`
Name string `json:"name"`
Content string `json:"content"`
Desc string `json:"desc"`
ShortUrlConfig *ShortUrlConfig `json:"shortUrlConfig"`
}
type ApplySmsTemplateResponse ¶
type ApplySmsTemplateResponse struct {
ResponseMetadata base.ResponseMetadata
Result *SmsTemplateInfo
}
type ApplyTemplateV2Request ¶ added in v1.0.222
type ApplyTemplateV2Request struct {
SubAccounts []string `json:"subAccounts"`
TemplateId string `json:"templateId"`
SecondTemplateId string `json:"secondTemplateId"` // 二级文案ID
Content string `json:"content"`
ChannelType string `json:"channelType"`
Area string `json:"area"`
Name string `json:"name"`
ShortUrlConfig ShortUrlConfig `json:"shortUrlConfig"`
Desc string `json:"desc"`
Signatures []string `json:"signatures"`
TemplateParams []TemplateParamsV2 `json:"templateParams"`
TemplateTrafficDriving [][]TemplateParamWithTrafficDriving `json:"templateTrafficDriving"`
}
type ApplyTemplateV2Response ¶ added in v1.0.222
type ApplyTemplateV2Response struct {
ResponseMetadata base.ResponseMetadata
Result BindSignaturesResp `json:"Result"`
}
type ApplyVmsTemplateRequest ¶
type ApplyVmsTemplateRequest struct {
SubAccount string `json:"subAccount"`
ChannelType SmsChannelType `json:"channelType"`
Name string `json:"name"`
Theme string `json:"theme"`
Signature string `json:"signature"`
Contents []VmsElement `json:"contents"`
}
type ApplyVmsTemplateResponse ¶
type ApplyVmsTemplateResponse struct {
ResponseMetadata base.ResponseMetadata
Result *VmsTemplateInfo
}
type BatchBindSignatureIdentRequest ¶ added in v1.0.163
type BatchBindSignatureIdentResponse ¶ added in v1.0.163
type BatchBindSignatureIdentResponse struct {
ResponseMetadata base.ResponseMetadata
Result struct {
Msg string `json:"msg"`
}
}
type BindSignatureRequest ¶ added in v1.0.222
type BindSignatureRequest struct {
SubAccounts []string `json:"subAccounts"`
TemplateId string `json:"templateId"`
Signatures []string `json:"signatures"`
TemplateTrafficDriving [][]TemplateParamWithTrafficDriving `form:"templateTrafficDriving" json:"templateTrafficDriving"`
}
type BindSignatureResponse ¶ added in v1.0.222
type BindSignatureResponse struct {
ResponseMetadata base.ResponseMetadata
Result BindSignaturesResp `json:"Result"`
}
type BindSignaturesResp ¶ added in v1.0.222
type BindSignaturesResp struct {
TemplateId string `json:"templateId"`
SecondTemplates []SecondTemplateResp `json:"secondTemplates"`
}
type BindTrafficDrivingParamsRequest ¶ added in v1.0.222
type BindTrafficDrivingParamsRequest struct {
SecondTemplateId string `json:"secondTemplateId"`
SubContentId string `json:"subContentId"`
TemplateTrafficDriving [][]TemplateParamWithTrafficDriving `json:"templateTrafficDriving" vd:"len($)>0"`
}
type BindTrafficDrivingParamsResponse ¶ added in v1.0.222
type BindTrafficDrivingParamsResponse struct {
ResponseMetadata base.ResponseMetadata
Result string `json:"Result"`
}
type BulkCreateTobTrafficDrivingLinkItem ¶ added in v1.0.222
type BulkCreateTobTrafficDrivingLinkItem struct {
UseVolcLink *bool `json:"useVolcLink"`
Protocol string `json:"protocol"`
Link string `json:"link"`
LinkDomainIcp string `json:"linkDomainIcp"`
LinkDomainIcpBody string `json:"linkDomainIcpBody"`
JumpLink string `json:"jumpLink"`
JumpLinkDomainIcp string `json:"jumpLinkDomainIcp"`
JumpLinkDomainIcpBody string `json:"jumpLinkDomainIcpBody"`
}
type BulkCreateTobTrafficDrivingLinkRequest ¶ added in v1.0.222
type BulkCreateTobTrafficDrivingLinkRequest struct {
Data []BulkCreateTobTrafficDrivingLinkItem `json:"data"`
}
type BulkCreateTobTrafficDrivingLinkResponse ¶ added in v1.0.222
type BulkCreateTobTrafficDrivingLinkResponse struct {
ResponseMetadata base.ResponseMetadata
Result string
}
type BulkCreateTobTrafficDrivingPhoneRequest ¶ added in v1.0.222
type BulkCreateTobTrafficDrivingPhoneRequest struct {
Data []CreateTobTrafficDrivingPhoneItem `json:"data"`
}
type BulkCreateTobTrafficDrivingPhoneResponse ¶ added in v1.0.222
type BulkCreateTobTrafficDrivingPhoneResponse struct {
ResponseMetadata base.ResponseMetadata
Result string
}
type BusinessInfo ¶ added in v1.0.163
type BusinessInfo struct {
BusinessCertificateType DocType `json:"businessCertificateType"` // 营业证件类型
BusinessCertificate SignAuthFile `json:"businessCertificate"` // 营业证件
BusinessCertificateName string `json:"businessCertificateName"` // 营业证件名称
UnifiedSocialCreditIdentifier string `json:"unifiedSocialCreditIdentifier"` // 统一社会信用代码
BusinessCertificateValidityPeriodStart string `json:"businessCertificateValidityPeriodStart"` // 营业证件有效期开始
BusinessCertificateValidityPeriodEnd string `json:"businessCertificateValidityPeriodEnd"` // 营业证件有效期结束
LegalPersonName string `json:"legalPersonName"` // 法人名称
}
type CarrierReviewInfo ¶
type CarrierReviewInfo struct {
Carrier string `json:"carrier"`
Status SmsOrderStatus `json:"status"`
Reason string `json:"reason"`
}
type CertificateType ¶ added in v1.0.163
type CertificateType int32
const (
IDCard CertificateType = 0 // 身份证
)
type CheckSmsVerifyCodeResponse ¶
type CheckSmsVerifyCodeResponse struct {
ResponseMetadata base.ResponseMetadata
Result string
}
type ConversionRequest ¶
type ConversionResponse ¶
type ConversionResponse struct {
ResponseMetadata base.ResponseMetadata
Result string
}
type CreateTobTrafficDrivingPhoneItem ¶ added in v1.0.222
type CreateTobTrafficDrivingPhoneItem struct {
NumberType TobTrafficDrivingPhoneNumberType `json:"numberType"`
Number string `json:"number"`
Company string `json:"company"`
NumberPerson string `json:"numberPerson"`
PersonType TobTrafficDrivingPhonePersonType `json:"personType"`
PersonId string `json:"personId"`
NumberProvince string `json:"numberProvince"`
NumberCity string `json:"numberCity"`
}
type DeleteSignatureRequest ¶
type DeleteSignatureResponse ¶
type DeleteSignatureResponse struct {
ResponseMetadata base.ResponseMetadata
Result string
}
type DeleteSmsTemplateResponse ¶
type DeleteSmsTemplateResponse struct {
ResponseMetadata base.ResponseMetadata
Result string
}
type DeleteTobTrafficDrivingLinkRequest ¶ added in v1.0.222
type DeleteTobTrafficDrivingLinkResponse ¶ added in v1.0.222
type DeleteTobTrafficDrivingLinkResponse struct {
ResponseMetadata base.ResponseMetadata
Result string
}
type DeleteTobTrafficDrivingPhoneRequest ¶ added in v1.0.222
type DeleteTobTrafficDrivingPhoneRequest struct {
Number string `json:"number"`
}
type DeleteTobTrafficDrivingPhoneResponse ¶ added in v1.0.222
type DeleteTobTrafficDrivingPhoneResponse struct {
ResponseMetadata base.ResponseMetadata
Result string
}
type DocType ¶ added in v1.0.100
type DocType = int
const ( DocTypeThreeInOne DocType = 0 // 三证合一 DocTypeBusinessLicense DocType = 1 // 企业营业执照 DocTypeOrganizationCodeCertificate DocType = 2 // 组织机构代码证 DocTypeTaxRegistrationCertificate DocType = 3 // 税务登记证 DocTypeSocialCreditCodeCertificate DocType = 4 // 社会信用代码证书 DocTypePowerOfAttorney DocType = 5 // 授权委托书 DocTypeOthers DocType = 6 // 其他/更多 DocTypeInstitutionLegalPersonCertificate DocType = 7 // 事业单位法人证书 DocTypeRepresentativeIDCardFront DocType = 8 // 经办人身份证人像面 DocTypeRepresentativeIDCardBack DocType = 9 // 经办人身份证国徽面 DocTypeResponsiblePersonIDCardFront DocType = 10 // 责任人身份证人像面 DocTypeResponsiblePersonIDCardBack DocType = 11 // 责任人身份证国徽面 DocTypePassportCard DocType = 12 // 护照照片 DocTypeHKMPassportCard DocType = 13 // 港澳居民来往内地通行证照片 DocTypeTWPassportCard DocType = 14 // 台湾居民来往大陆通行证照片 DocTypeHMTResidenceCard DocType = 15 // 港澳台居民居住证照片 DocTypeAppIcpCertificate DocType = 16 // APPICP证书 DocTypeTrademarkCertificate DocType = 17 // 商标证书 )
type GetSignatureAndOrderListResponse ¶
type GetSignatureAndOrderListResponse struct {
ResponseMetadata base.ResponseMetadata
Result *struct {
List []*SmsSignatureInfo `json:"list"`
Total int `json:"total"`
}
}
type GetSignatureIdentListRequest ¶ added in v1.0.163
type GetSignatureIdentListResponse ¶ added in v1.0.163
type GetSignatureIdentListResponse struct {
ResponseMetadata base.ResponseMetadata
Result SignatureIdentList
}
type GetSmsSendDetailsRequest ¶ added in v1.0.152
type GetSmsSendDetailsResponse ¶ added in v1.0.152
type GetSmsSendDetailsResponse struct {
ResponseMetadata base.ResponseMetadata
Result *struct {
List []*SendDetailsResult `json:"sendDetailsResults"`
Total int `json:"total"`
Account string `json:"account"`
SubAccount string `json:"subAccount"`
}
}
type GetSmsTemplateAndOrderListRequest ¶
type GetSmsTemplateAndOrderListRequest struct {
SubAccount string `url:"subAccount,omitempty"`
TemplateId string `url:"templateId"`
Name string `url:"name"`
Area Area `url:"area"`
ChannelType string `url:"channelType"`
Content string `url:"content"`
PageIndex int `url:"pageIndex"`
PageSize int `url:"pageSize"`
}
type GetSmsTemplateAndOrderListResponse ¶
type GetSmsTemplateAndOrderListResponse struct {
ResponseMetadata base.ResponseMetadata
Result *struct {
List []*SmsTemplateInfo `json:"list"`
Total int `json:"total"`
}
}
type GetSubAccountDetailRequest ¶
type GetSubAccountDetailRequest struct {
SubAccount string `url:"subAccount"`
}
type GetSubAccountDetailResponse ¶
type GetSubAccountDetailResponse struct {
ResponseMetadata base.ResponseMetadata
Result *SmsSubAccountDetail
}
type GetSubAccountListResponse ¶
type GetSubAccountListResponse struct {
ResponseMetadata base.ResponseMetadata
Result *struct {
List []*SmsSubAccountInfo `json:"list"`
Total int `json:"total"`
}
}
type GetTobTrafficDrivingLinkListRequest ¶ added in v1.0.222
type GetTobTrafficDrivingLinkListResponse ¶ added in v1.0.222
type GetTobTrafficDrivingLinkListResponse struct {
ResponseMetadata base.ResponseMetadata
Result struct {
List []TobTrafficDrivingLinkJson `json:"list"`
Total int64 `json:"total"`
}
}
type GetTobTrafficDrivingPhoneListRequest ¶ added in v1.0.222
type GetTobTrafficDrivingPhoneListRequest struct {
Number string `query:"number" json:"number"`
}
type GetTobTrafficDrivingPhoneListResponse ¶ added in v1.0.222
type GetTobTrafficDrivingPhoneListResponse struct {
ResponseMetadata base.ResponseMetadata
Result struct {
List []TobTrafficDrivingPhoneJson `json:"list"`
Total int64 `json:"total"`
}
}
type GetVmsTemplateStatusResponse ¶
type GetVmsTemplateStatusResponse struct {
ResponseMetadata base.ResponseMetadata
Result struct {
ApplyResult []CarrierReviewInfo `json:"ApplyResult"`
ApproveTime int64 `json:"approveTime"` // 视频模版;模版通过的第一个运营商审批时间
ExpireTime int64 `json:"expireTime"` // 视频模版;模版的到期时间
RestValidDays int64 `json:"restValidDays"` // 视频模版;模版剩余有效天数
}
}
type InsertSmsSubAccountReq ¶
type InsertSmsSubAccountResponse ¶
type InsertSmsSubAccountResponse struct {
ResponseMetadata base.ResponseMetadata
Result string
}
type ListRelationTemplateRequest ¶ added in v1.0.222
type ListRelationTemplateResponse ¶ added in v1.0.222
type ListRelationTemplateResponse struct {
ResponseMetadata base.ResponseMetadata
Result struct {
List []TemplateV2 `json:"list"`
Total int64 `json:"total"`
}
}
type ListSecondTemplateRequest ¶ added in v1.0.222
type ListSecondTemplateRequest struct {
SubAccounts []string `query:"subAccounts" json:"subAccounts"`
TemplateId string `query:"templateId" json:"templateId"`
TemplateIdList []string `query:"templateIdList" json:"templateIdList"`
SignatureList []string `query:"signatureList" json:"signatureList"`
SecondTemplateId string `query:"secondTemplateId" json:"secondTemplateId"` // 二级模版名称-精确查询
SecondTemplateIdList []string `query:"secondTemplateIdList" json:"secondTemplateIdList"` // 二级模版ID列表
StatusList []int32 `query:"statusList" json:"statusList"` // 状态列表
}
type ListSecondTemplateResponse ¶ added in v1.0.222
type ListSecondTemplateResponse struct {
ResponseMetadata base.ResponseMetadata
Result *ListSecondTemplateResult `json:"Result"`
}
type ListSecondTemplateResult ¶ added in v1.0.222
type ListSecondTemplateResult struct {
Total int32 `json:"total"`
List []SecondTemplate `json:"list"`
}
type ListSmsTemplateV2Request ¶ added in v1.0.222
type ListSmsTemplateV2Request struct {
SubAccounts []string `query:"subAccounts" json:"subAccounts"`
Page int32 `query:"page" json:"page"`
PageSize int32 `query:"pageSize" json:"pageSize"`
TemplateId string `query:"templateId" json:"templateId"`
Signature string `query:"signature" json:"signature"`
Name string `query:"name" json:"name"`
Content string `query:"content" json:"content"`
}
type ListSmsTemplateV2Response ¶ added in v1.0.222
type ListSmsTemplateV2Response struct {
ResponseMetadata base.ResponseMetadata
Result *ListTemplateV2Result `json:"Result"`
}
type ListSubContentRequest ¶ added in v1.0.222
type ListSubContentResponse ¶ added in v1.0.222
type ListSubContentResponse struct {
ResponseMetadata base.ResponseMetadata
Result *ListSubContentResult `json:"Result"`
}
type ListSubContentResult ¶ added in v1.0.222
type ListSubContentResult struct {
Total int32 `json:"total"`
List []SubContent `json:"list"`
}
type ListTemplateV2Result ¶ added in v1.0.222
type ListTemplateV2Result struct {
Total int32 `json:"total"`
List []TemplateV2 `json:"list"`
}
type PersonInfo ¶ added in v1.0.163
type PersonInfo struct {
CertificateType CertificateType `json:"certificateType"` // 证件类型 0.身份证
PersonCertificate []SignAuthFile `json:"personCertificate"` // 证件信息
PersonName string `json:"personName"` // 名字
PersonIDCard string `json:"personIDCard"` // 证件号码
PersonMobile string `json:"personMobile"` // 手机号
}
type ReportStatus ¶ added in v1.0.222
type ReportStatus struct {
Status int32 `json:"status"`
CMCC struct {
Status int32 `json:"status"`
Reason string `json:"reason"`
} `json:"cmcc"`
CT struct {
Status int32 `json:"status"`
Reason string `json:"reason"`
} `json:"ct"`
UniCom struct {
Status int32 `json:"status"`
Reason string `json:"reason"`
} `json:"unicom"`
}
type SMS ¶
IAM .
func (*SMS) ApplySignatureIdent ¶ added in v1.0.163
func (p *SMS) ApplySignatureIdent(req *ApplySignatureIdentRequest) (*ApplySignatureIdentResponse, int, error)
func (*SMS) ApplySmsSignature ¶
func (p *SMS) ApplySmsSignature(req *ApplySmsSignatureRequest) (*ApplySmsSignatureResponse, int, error)
func (*SMS) ApplySmsSignatureV2 ¶ added in v1.0.207
func (p *SMS) ApplySmsSignatureV2(req *ApplySmsSignatureRequestV2) (*ApplySmsSignatureResponse, int, error)
func (*SMS) ApplySmsTemplate ¶
func (p *SMS) ApplySmsTemplate(req *ApplySmsTemplateRequest) (*ApplySmsTemplateResponse, int, error)
func (*SMS) ApplySmsTemplateV2 ¶ added in v1.0.222
func (p *SMS) ApplySmsTemplateV2(req *ApplyTemplateV2Request) (*ApplyTemplateV2Response, int, error)
func (*SMS) ApplyVmsTemplate ¶
func (p *SMS) ApplyVmsTemplate(req *ApplyVmsTemplateRequest) (*ApplyVmsTemplateResponse, int, error)
func (*SMS) BatchBindSignatureIdent ¶ added in v1.0.163
func (p *SMS) BatchBindSignatureIdent(req *BatchBindSignatureIdentRequest) (*BatchBindSignatureIdentResponse, int, error)
func (*SMS) BatchSend ¶
func (p *SMS) BatchSend(req *SmsBatchRequest) (*SmsResponse, int, error)
func (*SMS) BindSignatures ¶ added in v1.0.222
func (p *SMS) BindSignatures(req *BindSignatureRequest) (*BindSignatureResponse, int, error)
func (*SMS) BindTrafficDrivingParams ¶ added in v1.0.222
func (p *SMS) BindTrafficDrivingParams(req *BindTrafficDrivingParamsRequest) (*BindTrafficDrivingParamsResponse, int, error)
func (*SMS) BulkCreateTobTrafficDrivingLink ¶ added in v1.0.222
func (p *SMS) BulkCreateTobTrafficDrivingLink(req *BulkCreateTobTrafficDrivingLinkRequest) (*BulkCreateTobTrafficDrivingLinkResponse, int, error)
func (*SMS) BulkCreateTobTrafficDrivingPhone ¶ added in v1.0.222
func (p *SMS) BulkCreateTobTrafficDrivingPhone(req *BulkCreateTobTrafficDrivingPhoneRequest) (*BulkCreateTobTrafficDrivingPhoneResponse, int, error)
func (*SMS) CheckVerifyCode ¶
func (p *SMS) CheckVerifyCode(req *CheckSmsVerifyCodeRequest) (*CheckSmsVerifyCodeResponse, int, error)
func (*SMS) Conversion ¶
func (p *SMS) Conversion(req *ConversionRequest) (*ConversionResponse, int, error)
func (*SMS) DeleteSignature ¶
func (p *SMS) DeleteSignature(req *DeleteSignatureRequest) (*DeleteSignatureResponse, int, error)
func (*SMS) DeleteSmsTemplate ¶
func (p *SMS) DeleteSmsTemplate(req *DeleteSmsTemplateRequest) (*DeleteSmsTemplateResponse, int, error)
func (*SMS) DeleteTobTrafficDrivingLink ¶ added in v1.0.222
func (p *SMS) DeleteTobTrafficDrivingLink(req *DeleteTobTrafficDrivingLinkRequest) (*DeleteTobTrafficDrivingLinkResponse, int, error)
func (*SMS) DeleteTobTrafficDrivingPhone ¶ added in v1.0.222
func (p *SMS) DeleteTobTrafficDrivingPhone(req *DeleteTobTrafficDrivingPhoneRequest) (*DeleteTobTrafficDrivingPhoneResponse, int, error)
func (*SMS) GetRelationTemplateList ¶ added in v1.0.222
func (p *SMS) GetRelationTemplateList(req *ListRelationTemplateRequest) (*ListRelationTemplateResponse, int, error)
func (*SMS) GetServiceInfo ¶
func (p *SMS) GetServiceInfo(region string) *base.ServiceInfo
GetServiceInfo interface
func (*SMS) GetSignatureAndOrderList ¶
func (p *SMS) GetSignatureAndOrderList(req *GetSignatureAndOrderListRequest) (*GetSignatureAndOrderListResponse, int, error)
func (*SMS) GetSignatureIdentList ¶ added in v1.0.163
func (p *SMS) GetSignatureIdentList(req *GetSignatureIdentListRequest) (*GetSignatureIdentListResponse, int, error)
func (*SMS) GetSmsSendDetails ¶ added in v1.0.152
func (p *SMS) GetSmsSendDetails(req *GetSmsSendDetailsRequest) (*GetSmsSendDetailsResponse, int, error)
func (*SMS) GetSmsTemplateAndOrderList ¶
func (p *SMS) GetSmsTemplateAndOrderList(req *GetSmsTemplateAndOrderListRequest) (*GetSmsTemplateAndOrderListResponse, int, error)
func (*SMS) GetSubAccountDetail ¶
func (p *SMS) GetSubAccountDetail(req *GetSubAccountDetailRequest) (*GetSubAccountDetailResponse, int, error)
func (*SMS) GetSubAccountList ¶
func (p *SMS) GetSubAccountList(req *GetSubAccountListRequest) (*GetSubAccountListResponse, int, error)
func (*SMS) GetTobTrafficDrivingLinkList ¶ added in v1.0.222
func (p *SMS) GetTobTrafficDrivingLinkList(req *GetTobTrafficDrivingLinkListRequest) (*GetTobTrafficDrivingLinkListResponse, int, error)
func (*SMS) GetTobTrafficDrivingPhoneList ¶ added in v1.0.222
func (p *SMS) GetTobTrafficDrivingPhoneList(req *GetTobTrafficDrivingPhoneListRequest) (*GetTobTrafficDrivingPhoneListResponse, int, error)
func (*SMS) GetVmsTemplateStatus ¶
func (p *SMS) GetVmsTemplateStatus(req *GetVmsTemplateStatusRequest) (*GetVmsTemplateStatusResponse, int, error)
func (*SMS) InsertSmsSubAccount ¶
func (p *SMS) InsertSmsSubAccount(req *InsertSmsSubAccountReq) (*InsertSmsSubAccountResponse, int, error)
func (*SMS) ListSecondTemplate ¶ added in v1.0.222
func (p *SMS) ListSecondTemplate(req *ListSecondTemplateRequest) (*ListSecondTemplateResponse, int, error)
func (*SMS) ListSmsTemplateV2 ¶ added in v1.0.222
func (p *SMS) ListSmsTemplateV2(req *ListSmsTemplateV2Request) (*ListSmsTemplateV2Response, int, error)
func (*SMS) ListSubContent ¶ added in v1.0.222
func (p *SMS) ListSubContent(req *ListSubContentRequest) (*ListSubContentResponse, int, error)
func (*SMS) Send ¶
func (p *SMS) Send(req *SmsRequest) (*SmsResponse, int, error)
func (*SMS) SendVerifyCode ¶
func (p *SMS) SendVerifyCode(req *SmsVerifyCodeRequest) (*SmsResponse, int, error)
func (*SMS) SendVms ¶
func (p *SMS) SendVms(req *SendVmsRequest) (*SendVmsResponse, int, error)
func (*SMS) UpdateSignatureIdent ¶ added in v1.0.222
func (p *SMS) UpdateSignatureIdent(req *UpdateSignatureIdentificationRequest) (*UpdateSignatureIdentificationResponse, int, error)
func (*SMS) UpdateSmsSignature ¶ added in v1.0.213
func (p *SMS) UpdateSmsSignature(req *UpdateSmsSignatureRequestV2) (*UpdateSmsSignatureResponse, int, error)
func (*SMS) UpdateTobTrafficDrivingPhone ¶ added in v1.0.222
func (p *SMS) UpdateTobTrafficDrivingPhone(req *UpdateTobTrafficDrivingPhoneRequest) (*UpdateTobTrafficDrivingPhoneResponse, int, error)
type SecondTemplate ¶ added in v1.0.222
type SecondTemplate struct {
TemplateId string `json:"templateId"`
SecondTemplateId string `json:"secondTemplateId"`
Content string `json:"content"`
ChannelType string `json:"channelType"`
Signature string `json:"signature"`
SubAccounts []string `json:"subAccounts"`
TemplateParams []TemplateParamsV2 `json:"templateParams"`
FixTrafficDriving []TemplateParamsV2 `json:"fixTrafficDriving"`
CreatedAt int64 `json:"createdAt"`
UpdatedAt int64 `json:"updatedAt"`
ReviewStatus int32 `json:"reviewStatus"` // 0 未送审;1. 审核中;2.审核失败;3.审核通过
Industry string `json:"industry"`
IndustryCn string `json:"industryCn"` // 行业中文名
Name string `json:"name"`
Account string `json:"account"`
ShortUrlConfig ShortUrlConfig `json:"shortUrlConfig"`
}
type SecondTemplateResp ¶ added in v1.0.222
type SendDetailsResult ¶ added in v1.0.152
type SendDetailsResult struct {
Status SendLogStatus `json:"status"`
ErrorCode string `json:"errorCode"`
ErrorMessage string `json:"errorMessage"`
PhoneNumber string `json:"phoneNumber"`
Signature string `json:"signature"`
TemplateId string `json:"templateID"`
Content string `json:"content"`
ChannelType string `json:"channelType"`
MessageId string `json:"messageId"`
MsgCount int32 `json:"msgCount"`
SendTime int64 `json:"sendTime"`
ReceiptTime int64 `json:"receiptTime"`
}
type SendLogStatus ¶ added in v1.0.152
type SendLogStatus int32
type SendVmsRequest ¶
type SendVmsResponse ¶
type SendVmsResponse struct {
ResponseMetadata base.ResponseMetadata
Result *VmsResult `json:"Result,omitempty"`
}
type ShortUrlConfig ¶
type ShortUrlConfig struct {
IsEnabled ShortUrlEnableStatus `json:"isEnabled"`
IsNeedClickDetails ShortUrlEnableStatus `json:"isNeedClickDetails"`
UACheckStrategy int `json:"uaCheckStrategy"`
}
type ShortUrlEnableStatus ¶
type ShortUrlEnableStatus string
const ( EnableStatusNotEnabled ShortUrlEnableStatus = "0" EnableStatusEnabled ShortUrlEnableStatus = "1" )
type SignAuthFile ¶ added in v1.0.100
type SignPurpose ¶ added in v1.0.100
type SignPurpose = int
const ( SignPurposeForOwn SignPurpose = 1 SignPurposeForOther SignPurpose = 2 )
type SignSourceType ¶ added in v1.0.100
type SignSourceType = string
const ( SignSourceTypeCompany SignSourceType = "公司全称/简称" SignSourceTypeSite SignSourceType = "工信部备案网站全称/简称" // deprecated SignSourceTypeApp SignSourceType = "APP全称/简称" SignSourceTypeOfficialAccounts SignSourceType = "公众号、小程序全称/简称" // deprecated SignSourceTypeBrand SignSourceType = "商标全称/简称" SignSourceTypeStore SignSourceType = "电商平台店铺名的全称/简称" // deprecated )
type SignatureIdentList ¶ added in v1.0.163
type SignatureIdentList struct {
List []struct {
Id int64 `json:"id"`
Purpose int32 `json:"purpose"` // 资质用途; 1.自用,2.他用
MaterialName string `json:"materialName"` // 资质名称
BusinessCertificateName string `json:"businessCertificateName"` // 营业证件名称
OperatorPersonName string `json:"operatorPersonName"` // 经办人名字
ResponsiblePersonName string `json:"responsiblePersonName"` // 责任人名字
LegalPersonName string `json:"legalPersonName"` // 法人名字
EffectSignatures []string `json:"effectSignatures"` // 生效签名范围
} `json:"list"`
Total int64 `json:"total"`
}
type SmsBatchMessages ¶
type SmsBatchRequest ¶
type SmsChannelType ¶
type SmsChannelType string
const ( SmsChannelTypeCnOTP SmsChannelType = "CN_OTP" SmsChannelTypeCnNTC SmsChannelType = "CN_NTC" SmsChannelTypeCnMKT SmsChannelType = "CN_MKT" SmsChannelTypeCnVms SmsChannelType = "CN_VMS" SmsChannelTypeI18nOTP SmsChannelType = "I18N_OTP" SmsChannelTypeI18nMKT SmsChannelType = "I18N_MKT" )
type SmsOrderStatus ¶
type SmsOrderStatus int64
const ( SmsOrder_REVIEWING SmsOrderStatus = 1 SmsOrder_REJECTED SmsOrderStatus = 2 SmsOrder_PASSED SmsOrderStatus = 3 SmsOrder_CLOSE SmsOrderStatus = 4 SmsOrder_EXEMPTED SmsOrderStatus = 5 VmsOrder_VENDOR_REVIEWING SmsOrderStatus = 6 // 视频短信供应商审核中 VmsOrder_VENDOR_REJECTED SmsOrderStatus = 7 // 视频短信供应商审核失败 VmsOrder_VENDOR_PASSED SmsOrderStatus = 8 // 视频短信供应商审核通过 VmsOrder_VENDOR_EXPIRED SmsOrderStatus = 9 // 视频短信模版过期 )
type SmsRequest ¶
type SmsResponse ¶
type SmsResponse struct {
ResponseMetadata base.ResponseMetadata
Result *SmsResult `json:"Result,omitempty"`
}
AssumeRole
type SmsSignatureInfo ¶
type SmsSignatureInfo struct {
Id string `json:"id"`
ApplyId string `json:"applyId"`
Content string `json:"content"`
CreatedTime int64 `json:"createdTime"`
Status SmsOrderStatus `json:"status"`
Source string `json:"source"`
Reason string `json:"reason"`
IsOrder bool `json:"isOrder"`
Application string `json:"application"`
OpenId string `json:"openId"`
IdentificationID int64 `json:"identificationID"`
IdentificationName string `json:"identificationName"`
Purpose int32 `json:"purpose"`
UpdateStatus int32 `json:"updateStatus"`
UpdateReason string `json:"updateReason"`
IsCommonSign bool `json:"isCommonSign"`
SubAccounts []string `json:"subAccounts"`
ChannelTypes []string `json:"channelTypes"`
Industry string `json:"industry"`
IndustryCN string `json:"industryCN"`
Usable bool `json:"usable"`
ReportStatus ReportStatus `json:"reportStatus"`
AuditedAt int64 `json:"auditedAt"`
}
type SmsSubAccountDetail ¶
type SmsSubAccountDetail struct {
SubAccountId string `json:"subAccountId"`
SubAccountName string `json:"subAccountName"`
EnabledChannelType []*struct {
Name string `json:"name"`
Value SmsChannelType `json:"value"`
Area Area
} `json:"enabledChannelType"`
Status int `json:"status"`
Desc string `json:"desc"`
CreatedTime int64 `json:"createdTime"`
}
type SmsSubAccountInfo ¶
type SmsTemplateInfo ¶
type SmsTemplateInfo struct {
Id string `json:"id"`
ApplyId string `json:"applyId,omitempty"`
TemplateId string `json:"templateId"`
ChannelType SmsChannelType `json:"channelType"`
ChannelTypeName string `json:"channelTypeName"`
Name string `json:"name"`
Content string `json:"content"`
Status SmsOrderStatus `json:"status"`
IsOrder bool `json:"isOrder"`
Reason string `json:"reason"`
CreatedTime int64 `json:"createdTime"`
ShortUrlConfig *ShortUrlConfig `json:"shortUrlConfig"`
}
type SmsVerifyCodeRequest ¶
type SubContent ¶ added in v1.0.222
type SubContent struct {
Content string `json:"content"`
CreatedAt int64 `json:"createdAt"`
FixTrafficDriving []TemplateParamsV2 `json:"fixTrafficDriving"`
TemplateParams []TemplateParamsV2 `json:"templateParams"`
SubContentId string `json:"subContentId"`
Signature string `json:"signatures"`
TemplateId string `json:"templateId"`
SecondTemplateId string `json:"secondTemplateId"`
}
type TemplateParamWithTrafficDriving ¶ added in v1.0.222
type TemplateParamsV2 ¶ added in v1.0.222
type TemplateV2 ¶ added in v1.0.222
type TemplateV2 struct {
TemplateId string `json:"templateId"`
Content string `json:"content"`
ChannelType string `json:"channelType"`
Signatures []string `json:"signatures"`
SubAccounts []string `json:"subAccounts"`
SubAccountNames []string `json:"subAccountNames"`
Name string `json:"name"`
TemplateParams []TemplateParamsV2 `json:"templateParams"`
FixTrafficDriving []TemplateParamsV2 `json:"fixTrafficDriving"`
CreatedAt int64 `json:"createdAt"`
Status int32 `json:"status"`
CanDelete bool `json:"canDelete"`
Account string `json:"account"`
UseVolcLink bool `json:"useVolcLink"`
ShortUrlConfig ShortUrlConfig `json:"shortUrlConfig"`
}
type TobTrafficDrivingLinkJson ¶ added in v1.0.222
type TobTrafficDrivingLinkJson struct {
Account string `json:"account"`
UseVolcLink bool `json:"useVolcLink"`
Protocol string `json:"protocol"`
Link string `json:"link"`
LinkDomainIcp string `json:"linkDomainIcp"`
LinkDomainIcpBody string `json:"linkDomainIcpBody"`
LinkDomain string `json:"linkDomain"`
LinkPath string `json:"linkPath"`
JumpLink string `json:"jumpLink"`
JumpLinkDomain string `json:"jumpLinkDomain"`
JumpLinkPath string `json:"jumpLinkPath"`
JumpLinkDomainIcp string `json:"jumpLinkDomainIcp"`
JumpLinkDomainIcpBody string `json:"jumpLinkDomainIcpBody"`
CreatedAt int64 `json:"createdAt"`
UpdatedAt int64 `json:"updatedAt"`
}
type TobTrafficDrivingPhoneJson ¶ added in v1.0.222
type TobTrafficDrivingPhoneJson struct {
Account string `json:"account"`
NumberType int32 `json:"numberType"`
Number string `json:"number"`
Company string `json:"company"`
NumberPerson string `json:"numberPerson"`
PersonType int32 `json:"personType"`
PersonId string `json:"personId"`
NumberProvince string `json:"numberProvince"`
NumberCity string `json:"numberCity"`
NumberEvidence string `json:"numberEvidence"`
SoundInfo string `json:"soundInfo"`
ReviewStatus int32 `json:"reviewStatus"`
CreatedAt int64 `json:"createdAt"`
UpdatedAt int64 `json:"updatedAt"`
}
type TobTrafficDrivingPhoneNumberType ¶ added in v1.0.222
type TobTrafficDrivingPhoneNumberType int32
const ( MobilePhone TobTrafficDrivingPhoneNumberType = 1 Number400 TobTrafficDrivingPhoneNumberType = 2 Number700 TobTrafficDrivingPhoneNumberType = 3 Number800 TobTrafficDrivingPhoneNumberType = 4 Number95Or96 TobTrafficDrivingPhoneNumberType = 5 Number12 TobTrafficDrivingPhoneNumberType = 6 LandlineNumber TobTrafficDrivingPhoneNumberType = 7 )
type TobTrafficDrivingPhonePersonType ¶ added in v1.0.222
type TobTrafficDrivingPhonePersonType int32
const (
IdNumber TobTrafficDrivingPhonePersonType = 1
)
type Trademark ¶ added in v1.0.207
type Trademark struct {
TrademarkCn string `json:"trademarkCn"`
TrademarkEn string `json:"trademarkEn"`
TrademarkNumber string `json:"trademarkNumber"`
TrademarkFileList []SignAuthFile `json:"trademarkFileList"` // 商标相关的文件信息
}
type UpdateSignatureIdentificationRequest ¶ added in v1.0.222
type UpdateSignatureIdentificationRequest struct {
Id int64 `json:"id"`
OperatorPersonInfo PersonInfo `json:"operatorPerson"` // 经办人信息
ResponsiblePersonInfo PersonInfo `json:"responsiblePersonInfo"` // 责任人信息
LegalPersonInfo PersonInfo `json:"legalPerson"` // 法人信息
}
type UpdateSignatureIdentificationResponse ¶ added in v1.0.222
type UpdateSignatureIdentificationResponse struct {
ResponseMetadata base.ResponseMetadata
Result struct {
Msg string `json:"msg"`
}
}
type UpdateSmsSignatureRequestV2 ¶ added in v1.0.222
type UpdateSmsSignatureRequestV2 struct {
SubAccounts []string `json:"subAccounts"`
Content string `json:"content"`
Source int `json:"source"`
Domain string `json:"domain"`
Desc string `json:"desc,omitempty"`
UploadFileList []SignAuthFile `json:"uploadFileList"`
Purpose int `json:"purpose"`
SignatureIdentificationID int64 `json:"signatureIdentificationID"` // 绑定的资质id
AppIcp AppIcp `json:"appIcp"` // app icp信息
Trademark Trademark `json:"trademark"` // 商标信息
Scene string `json:"scene"` // 业务场景
ChannelTypes []string `json:"channelTypes"`
UpdateType int `json:"updateType"`
}
type UpdateSmsSignatureResponse ¶ added in v1.0.222
type UpdateSmsSignatureResponse struct {
ResponseMetadata base.ResponseMetadata
Result *SmsSignatureInfo
}
type UpdateTobTrafficDrivingPhoneRequest ¶ added in v1.0.222
type UpdateTobTrafficDrivingPhoneRequest struct {
NumberType TobTrafficDrivingPhoneNumberType `json:"numberType"`
Number string `json:"number"`
Company string `json:"company"`
NumberPerson string `json:"numberPerson"`
PersonType TobTrafficDrivingPhonePersonType `json:"personType"`
PersonId string `json:"personId"`
NumberProvince string `json:"numberProvince"`
NumberCity string `json:"numberCity"`
UpdatePersonId bool `json:"updatePersonId"`
}
type UpdateTobTrafficDrivingPhoneResponse ¶ added in v1.0.222
type UpdateTobTrafficDrivingPhoneResponse struct {
ResponseMetadata base.ResponseMetadata
Result string
}
type VmsElement ¶
type VmsTemplateInfo ¶
type VmsTemplateInfo struct {
TemplateId string `json:"templateId"`
}
Click to show internal directories.
Click to hide internal directories.