Documentation ¶
Overview ¶
Package jstsecret 包含聚石塔隐私号相关结构体
Index ¶
- type SecretNoBindResponse
- type TaobaoJstSecretGetAPIRequest
- func (r TaobaoJstSecretGetAPIRequest) GetApiMethodName() string
- func (r TaobaoJstSecretGetAPIRequest) GetApiParams() url.Values
- func (r TaobaoJstSecretGetAPIRequest) GetExpireDays() int64
- func (r TaobaoJstSecretGetAPIRequest) GetTid() int64
- func (r TaobaoJstSecretGetAPIRequest) GetType() int64
- func (r *TaobaoJstSecretGetAPIRequest) SetExpireDays(_expireDays int64) error
- func (r *TaobaoJstSecretGetAPIRequest) SetTid(_tid int64) error
- func (r *TaobaoJstSecretGetAPIRequest) SetType(_type int64) error
- type TaobaoJstSecretGetAPIResponse
- type TaobaoJstSecretGetAPIResponseModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretNoBindResponse ¶
type SecretNoBindResponse struct { // 分机号,type=2时有值。拨打时先拨打隐私号再转分机号 Extension string `json:"extension,omitempty" xml:"extension,omitempty"` // 隐私号码 SecretNo string `json:"secret_no,omitempty" xml:"secret_no,omitempty"` // 隐私号码过期时间 ExpireDate string `json:"expire_date,omitempty" xml:"expire_date,omitempty"` // 隐私号码类型,1=隐私号,2=分机号。 Type int64 `json:"type,omitempty" xml:"type,omitempty"` }
SecretNoBindResponse 结构体
type TaobaoJstSecretGetAPIRequest ¶
TaobaoJstSecretGetAPIRequest 获取订单消费者的隐私号码 API请求 taobao.jst.secret.get
根据订单号获取消费者的隐私号
func NewTaobaoJstSecretGetRequest ¶
func NewTaobaoJstSecretGetRequest() *TaobaoJstSecretGetAPIRequest
NewTaobaoJstSecretGetRequest 初始化TaobaoJstSecretGetAPIRequest对象
func (TaobaoJstSecretGetAPIRequest) GetApiMethodName ¶
func (r TaobaoJstSecretGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoJstSecretGetAPIRequest) GetApiParams ¶
func (r TaobaoJstSecretGetAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoJstSecretGetAPIRequest) GetExpireDays ¶
func (r TaobaoJstSecretGetAPIRequest) GetExpireDays() int64
GetExpireDays ExpireDays Getter
func (TaobaoJstSecretGetAPIRequest) GetTid ¶
func (r TaobaoJstSecretGetAPIRequest) GetTid() int64
GetTid Tid Getter
func (TaobaoJstSecretGetAPIRequest) GetType ¶
func (r TaobaoJstSecretGetAPIRequest) GetType() int64
GetType Type Getter
func (*TaobaoJstSecretGetAPIRequest) SetExpireDays ¶
func (r *TaobaoJstSecretGetAPIRequest) SetExpireDays(_expireDays int64) error
SetExpireDays is ExpireDays Setter 隐私号码过期天数,默认30天,取值范围[1,30]
func (*TaobaoJstSecretGetAPIRequest) SetTid ¶
func (r *TaobaoJstSecretGetAPIRequest) SetTid(_tid int64) error
SetTid is Tid Setter 订单号
func (*TaobaoJstSecretGetAPIRequest) SetType ¶
func (r *TaobaoJstSecretGetAPIRequest) SetType(_type int64) error
SetType is Type Setter 隐私号类型,1=手机号,2=分机号,默认为1;分机号使用时拨打手机号转分机号
type TaobaoJstSecretGetAPIResponse ¶
type TaobaoJstSecretGetAPIResponse struct { model.CommonResponse TaobaoJstSecretGetAPIResponseModel }
TaobaoJstSecretGetAPIResponse 获取订单消费者的隐私号码 API返回值 taobao.jst.secret.get
根据订单号获取消费者的隐私号
type TaobaoJstSecretGetAPIResponseModel ¶
type TaobaoJstSecretGetAPIResponseModel struct { XMLName xml.Name `xml:"jst_secret_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 结果 Secret *SecretNoBindResponse `json:"secret,omitempty" xml:"secret,omitempty"` }
TaobaoJstSecretGetAPIResponseModel is 获取订单消费者的隐私号码 成功返回结果