Documentation ¶
Overview ¶
Package jstsecret 包含聚石塔隐私号相关结构体
Index ¶
- func ReleaseSecretNoBindResponse(v *SecretNoBindResponse)
- func ReleaseTaobaoJstSecretGetAPIRequest(v *TaobaoJstSecretGetAPIRequest)
- func ReleaseTaobaoJstSecretGetAPIResponse(v *TaobaoJstSecretGetAPIResponse)
- type SecretNoBindResponse
- type TaobaoJstSecretGetAPIRequest
- func (r TaobaoJstSecretGetAPIRequest) GetApiMethodName() string
- func (r TaobaoJstSecretGetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaoJstSecretGetAPIRequest) GetExpireDays() int64
- func (r TaobaoJstSecretGetAPIRequest) GetRawParams() model.Params
- func (r TaobaoJstSecretGetAPIRequest) GetTid() int64
- func (r TaobaoJstSecretGetAPIRequest) GetType() int64
- func (r *TaobaoJstSecretGetAPIRequest) Reset()
- 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 ¶
func ReleaseSecretNoBindResponse ¶ added in v1.3.4
func ReleaseSecretNoBindResponse(v *SecretNoBindResponse)
ReleaseSecretNoBindResponse 释放SecretNoBindResponse
func ReleaseTaobaoJstSecretGetAPIRequest ¶ added in v1.3.4
func ReleaseTaobaoJstSecretGetAPIRequest(v *TaobaoJstSecretGetAPIRequest)
ReleaseTaobaoJstSecretGetAPIRequest 将 TaobaoJstSecretGetAPIRequest 放入 sync.Pool
func ReleaseTaobaoJstSecretGetAPIResponse ¶ added in v1.3.4
func ReleaseTaobaoJstSecretGetAPIResponse(v *TaobaoJstSecretGetAPIResponse)
ReleaseTaobaoJstSecretGetAPIResponse 将 TaobaoJstSecretGetAPIResponse 保存到 sync.Pool
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 结构体
func GetSecretNoBindResponse ¶ added in v1.3.4
func GetSecretNoBindResponse() *SecretNoBindResponse
GetSecretNoBindResponse() 从对象池中获取SecretNoBindResponse
type TaobaoJstSecretGetAPIRequest ¶
TaobaoJstSecretGetAPIRequest 获取订单消费者的隐私号码 API请求 taobao.jst.secret.get
根据订单号获取消费者的隐私号
func GetTaobaoJstSecretGetAPIRequest ¶ added in v1.3.4
func GetTaobaoJstSecretGetAPIRequest() *TaobaoJstSecretGetAPIRequest
GetTaobaoJstSecretGetRequest 从 sync.Pool 获取 TaobaoJstSecretGetAPIRequest
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(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoJstSecretGetAPIRequest) GetExpireDays ¶
func (r TaobaoJstSecretGetAPIRequest) GetExpireDays() int64
GetExpireDays ExpireDays Getter
func (TaobaoJstSecretGetAPIRequest) GetRawParams ¶ added in v1.2.8
func (r TaobaoJstSecretGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaoJstSecretGetAPIRequest) GetTid ¶
func (r TaobaoJstSecretGetAPIRequest) GetTid() int64
GetTid Tid Getter
func (TaobaoJstSecretGetAPIRequest) GetType ¶
func (r TaobaoJstSecretGetAPIRequest) GetType() int64
GetType Type Getter
func (*TaobaoJstSecretGetAPIRequest) Reset ¶ added in v1.3.4
func (r *TaobaoJstSecretGetAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
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
根据订单号获取消费者的隐私号
func GetTaobaoJstSecretGetAPIResponse ¶ added in v1.3.4
func GetTaobaoJstSecretGetAPIResponse() *TaobaoJstSecretGetAPIResponse
GetTaobaoJstSecretGetAPIResponse 从 sync.Pool 获取 TaobaoJstSecretGetAPIResponse
func (*TaobaoJstSecretGetAPIResponse) Reset ¶ added in v1.3.4
func (m *TaobaoJstSecretGetAPIResponse) Reset()
Reset 清空结构体
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 获取订单消费者的隐私号码 成功返回结果
func (*TaobaoJstSecretGetAPIResponseModel) Reset ¶ added in v1.3.4
func (m *TaobaoJstSecretGetAPIResponseModel) Reset()
Reset 清空结构体