Documentation ¶
Overview ¶
Package yunosaccount 包含Yunos Account API相关结构体
Index ¶
- func ReleaseAccountResult(v *AccountResult)
- func ReleaseYunosAccountCallapiAPIRequest(v *YunosAccountCallapiAPIRequest)
- func ReleaseYunosAccountCallapiAPIResponse(v *YunosAccountCallapiAPIResponse)
- type AccountResult
- type YunosAccountCallapiAPIRequest
- func (r YunosAccountCallapiAPIRequest) GetApi() string
- func (r YunosAccountCallapiAPIRequest) GetApiMethodName() string
- func (r YunosAccountCallapiAPIRequest) GetApiParams(params url.Values)
- func (r YunosAccountCallapiAPIRequest) GetAuthSign() string
- func (r YunosAccountCallapiAPIRequest) GetParams() string
- func (r YunosAccountCallapiAPIRequest) GetRawParams() model.Params
- func (r YunosAccountCallapiAPIRequest) GetTimeStamp() string
- func (r YunosAccountCallapiAPIRequest) GetVersion() string
- func (r *YunosAccountCallapiAPIRequest) Reset()
- func (r *YunosAccountCallapiAPIRequest) SetApi(_api string) error
- func (r *YunosAccountCallapiAPIRequest) SetAuthSign(_authSign string) error
- func (r *YunosAccountCallapiAPIRequest) SetParams(_params string) error
- func (r *YunosAccountCallapiAPIRequest) SetTimeStamp(_timeStamp string) error
- func (r *YunosAccountCallapiAPIRequest) SetVersion(_version string) error
- type YunosAccountCallapiAPIResponse
- type YunosAccountCallapiAPIResponseModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReleaseAccountResult ¶ added in v1.3.4
func ReleaseAccountResult(v *AccountResult)
ReleaseAccountResult 释放AccountResult
func ReleaseYunosAccountCallapiAPIRequest ¶ added in v1.3.4
func ReleaseYunosAccountCallapiAPIRequest(v *YunosAccountCallapiAPIRequest)
ReleaseYunosAccountCallapiAPIRequest 将 YunosAccountCallapiAPIRequest 放入 sync.Pool
func ReleaseYunosAccountCallapiAPIResponse ¶ added in v1.3.4
func ReleaseYunosAccountCallapiAPIResponse(v *YunosAccountCallapiAPIResponse)
ReleaseYunosAccountCallapiAPIResponse 将 YunosAccountCallapiAPIResponse 保存到 sync.Pool
Types ¶
type AccountResult ¶
type AccountResult struct { // data Data string `json:"data,omitempty" xml:"data,omitempty"` // message Message string `json:"message,omitempty" xml:"message,omitempty"` // status Status int64 `json:"status,omitempty" xml:"status,omitempty"` }
AccountResult 结构体
func GetAccountResult ¶ added in v1.3.4
func GetAccountResult() *AccountResult
GetAccountResult() 从对象池中获取AccountResult
type YunosAccountCallapiAPIRequest ¶ added in v1.2.0
type YunosAccountCallapiAPIRequest struct { model.Params // contains filtered or unexported fields }
YunosAccountCallapiAPIRequest 调用YunOS账号开放API API请求 yunos.account.callapi
YunOS账号客户端对外开放的api通过top暴露
func GetYunosAccountCallapiAPIRequest ¶ added in v1.3.4
func GetYunosAccountCallapiAPIRequest() *YunosAccountCallapiAPIRequest
GetYunosAccountCallapiRequest 从 sync.Pool 获取 YunosAccountCallapiAPIRequest
func NewYunosAccountCallapiRequest ¶
func NewYunosAccountCallapiRequest() *YunosAccountCallapiAPIRequest
NewYunosAccountCallapiRequest 初始化YunosAccountCallapiAPIRequest对象
func (YunosAccountCallapiAPIRequest) GetApi ¶ added in v1.2.0
func (r YunosAccountCallapiAPIRequest) GetApi() string
GetApi Api Getter
func (YunosAccountCallapiAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r YunosAccountCallapiAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (YunosAccountCallapiAPIRequest) GetApiParams ¶ added in v1.2.0
func (r YunosAccountCallapiAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (YunosAccountCallapiAPIRequest) GetAuthSign ¶ added in v1.2.0
func (r YunosAccountCallapiAPIRequest) GetAuthSign() string
GetAuthSign AuthSign Getter
func (YunosAccountCallapiAPIRequest) GetParams ¶ added in v1.2.0
func (r YunosAccountCallapiAPIRequest) GetParams() string
GetParams Params Getter
func (YunosAccountCallapiAPIRequest) GetRawParams ¶ added in v1.2.8
func (r YunosAccountCallapiAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (YunosAccountCallapiAPIRequest) GetTimeStamp ¶ added in v1.2.0
func (r YunosAccountCallapiAPIRequest) GetTimeStamp() string
GetTimeStamp TimeStamp Getter
func (YunosAccountCallapiAPIRequest) GetVersion ¶ added in v1.2.0
func (r YunosAccountCallapiAPIRequest) GetVersion() string
GetVersion Version Getter
func (*YunosAccountCallapiAPIRequest) Reset ¶ added in v1.3.4
func (r *YunosAccountCallapiAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*YunosAccountCallapiAPIRequest) SetApi ¶ added in v1.2.0
func (r *YunosAccountCallapiAPIRequest) SetApi(_api string) error
SetApi is Api Setter 调用的API名称
func (*YunosAccountCallapiAPIRequest) SetAuthSign ¶ added in v1.2.0
func (r *YunosAccountCallapiAPIRequest) SetAuthSign(_authSign string) error
SetAuthSign is AuthSign Setter 应用签名的MD5值
func (*YunosAccountCallapiAPIRequest) SetParams ¶ added in v1.2.0
func (r *YunosAccountCallapiAPIRequest) SetParams(_params string) error
SetParams is Params Setter 业务参数
func (*YunosAccountCallapiAPIRequest) SetTimeStamp ¶ added in v1.2.0
func (r *YunosAccountCallapiAPIRequest) SetTimeStamp(_timeStamp string) error
SetTimeStamp is TimeStamp Setter 时间戳,精确到秒;账号服务端会校验该值与服务器当前时间戳的差值,超过一定范围则拒绝请求
func (*YunosAccountCallapiAPIRequest) SetVersion ¶ added in v1.2.0
func (r *YunosAccountCallapiAPIRequest) SetVersion(_version string) error
SetVersion is Version Setter API版本号
type YunosAccountCallapiAPIResponse ¶
type YunosAccountCallapiAPIResponse struct { model.CommonResponse YunosAccountCallapiAPIResponseModel }
YunosAccountCallapiAPIResponse 调用YunOS账号开放API API返回值 yunos.account.callapi
YunOS账号客户端对外开放的api通过top暴露
func GetYunosAccountCallapiAPIResponse ¶ added in v1.3.4
func GetYunosAccountCallapiAPIResponse() *YunosAccountCallapiAPIResponse
GetYunosAccountCallapiAPIResponse 从 sync.Pool 获取 YunosAccountCallapiAPIResponse
func (*YunosAccountCallapiAPIResponse) Reset ¶ added in v1.3.4
func (m *YunosAccountCallapiAPIResponse) Reset()
Reset 清空结构体
type YunosAccountCallapiAPIResponseModel ¶ added in v1.2.0
type YunosAccountCallapiAPIResponseModel struct { XMLName xml.Name `xml:"yunos_account_callapi_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // result Result *AccountResult `json:"result,omitempty" xml:"result,omitempty"` }
YunosAccountCallapiAPIResponseModel is 调用YunOS账号开放API 成功返回结果
func (*YunosAccountCallapiAPIResponseModel) Reset ¶ added in v1.3.4
func (m *YunosAccountCallapiAPIResponseModel) Reset()
Reset 清空结构体