Documentation ¶
Overview ¶
YunOS model
Index ¶
- type AliyunCosmoGatewayInvokeAPIResponse
- type AliyunCosmoGatewayInvokeRequest
- func (r AliyunCosmoGatewayInvokeRequest) GetApiMethodName() string
- func (r AliyunCosmoGatewayInvokeRequest) GetApiParams() url.Values
- func (r AliyunCosmoGatewayInvokeRequest) GetContext() *RdamContext
- func (r AliyunCosmoGatewayInvokeRequest) GetRdamRequest() *RdamGenericRequest
- func (r *AliyunCosmoGatewayInvokeRequest) SetContext(context *RdamContext) error
- func (r *AliyunCosmoGatewayInvokeRequest) SetRdamRequest(rdamRequest *RdamGenericRequest) error
- type AliyunCosmoGatewayInvokeResponse
- type DpResult
- type OperBatchMsg
- type RdamContext
- type RdamGenericRequest
- type RdamResponse
- type YunosCloudcardBatchOpermsgSendAPIResponse
- type YunosCloudcardBatchOpermsgSendRequest
- func (r YunosCloudcardBatchOpermsgSendRequest) GetApiMethodName() string
- func (r YunosCloudcardBatchOpermsgSendRequest) GetApiParams() url.Values
- func (r YunosCloudcardBatchOpermsgSendRequest) GetOperBatchMsg() *OperBatchMsg
- func (r *YunosCloudcardBatchOpermsgSendRequest) SetOperBatchMsg(operBatchMsg *OperBatchMsg) error
- type YunosCloudcardBatchOpermsgSendResponse
- type YunosCosmoDataPushAPIResponse
- type YunosCosmoDataPushRequest
- func (r YunosCosmoDataPushRequest) GetApiMethodName() string
- func (r YunosCosmoDataPushRequest) GetApiParams() url.Values
- func (r YunosCosmoDataPushRequest) GetAppId() string
- func (r YunosCosmoDataPushRequest) GetJsonModel() string
- func (r *YunosCosmoDataPushRequest) SetAppId(appId string) error
- func (r *YunosCosmoDataPushRequest) SetJsonModel(jsonModel string) error
- type YunosCosmoDataPushResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliyunCosmoGatewayInvokeAPIResponse ¶
type AliyunCosmoGatewayInvokeAPIResponse struct { model.CommonResponse AliyunCosmoGatewayInvokeResponse }
alios cosmo服务调用 API返回值 aliyun.cosmo.gateway.invoke
AliOS cosmo服务分发平台对外调用接口
type AliyunCosmoGatewayInvokeRequest ¶
type AliyunCosmoGatewayInvokeRequest struct { model.Params // contains filtered or unexported fields }
alios cosmo服务调用 API请求 aliyun.cosmo.gateway.invoke
AliOS cosmo服务分发平台对外调用接口
func NewAliyunCosmoGatewayInvokeRequest ¶
func NewAliyunCosmoGatewayInvokeRequest() *AliyunCosmoGatewayInvokeRequest
初始化AliyunCosmoGatewayInvokeRequest对象
func (AliyunCosmoGatewayInvokeRequest) GetApiMethodName ¶
func (r AliyunCosmoGatewayInvokeRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (AliyunCosmoGatewayInvokeRequest) GetApiParams ¶
func (r AliyunCosmoGatewayInvokeRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (AliyunCosmoGatewayInvokeRequest) GetContext ¶
func (r AliyunCosmoGatewayInvokeRequest) GetContext() *RdamContext
Context Getter
func (AliyunCosmoGatewayInvokeRequest) GetRdamRequest ¶
func (r AliyunCosmoGatewayInvokeRequest) GetRdamRequest() *RdamGenericRequest
RdamRequest Getter
func (*AliyunCosmoGatewayInvokeRequest) SetContext ¶
func (r *AliyunCosmoGatewayInvokeRequest) SetContext(context *RdamContext) error
Context Setter 请求上下文参数
func (*AliyunCosmoGatewayInvokeRequest) SetRdamRequest ¶
func (r *AliyunCosmoGatewayInvokeRequest) SetRdamRequest(rdamRequest *RdamGenericRequest) error
RdamRequest Setter 请求对象
type AliyunCosmoGatewayInvokeResponse ¶
type AliyunCosmoGatewayInvokeResponse struct { XMLName xml.Name `xml:"aliyun_cosmo_gateway_invoke_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // result Result *RdamResponse `json:"result,omitempty" xml:"result,omitempty"` }
alios cosmo服务调用 成功返回结果
type DpResult ¶
type DpResult struct { // code Code int64 `json:"code,omitempty" xml:"code,omitempty"` // message Message string `json:"message,omitempty" xml:"message,omitempty"` // success Success bool `json:"success,omitempty" xml:"success,omitempty"` }
DpResult
type OperBatchMsg ¶
type OperBatchMsg struct { // 服务号唯一编号 AppId string `json:"app_id,omitempty" xml:"app_id,omitempty"` // YUNOS开放平台模板ID TplId string `json:"tpl_id,omitempty" xml:"tpl_id,omitempty"` // 消息体的JSON串,以小说为例 Content string `json:"content,omitempty" xml:"content,omitempty"` // 是否推荐消息标识,默认:false TjFlag bool `json:"tj_flag,omitempty" xml:"tj_flag,omitempty"` }
OperBatchMsg
type RdamGenericRequest ¶
type RdamGenericRequest struct { // 请求标示 TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` }
RdamGenericRequest
type RdamResponse ¶
type RdamResponse struct { // message Message string `json:"message,omitempty" xml:"message,omitempty"` // more More string `json:"more,omitempty" xml:"more,omitempty"` // code Code int64 `json:"code,omitempty" xml:"code,omitempty"` // dataList DataList []string `json:"data_list,omitempty" xml:"data_list>string,omitempty"` // traceId TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` }
RdamResponse
type YunosCloudcardBatchOpermsgSendAPIResponse ¶
type YunosCloudcardBatchOpermsgSendAPIResponse struct { model.CommonResponse YunosCloudcardBatchOpermsgSendResponse }
YUNOS生活服务群发消息 API返回值 yunos.cloudcard.batch.opermsg.send
这个是一个群发消息接口,ISV通过该接口给订阅自己服务号的所有YUNOS终端用户发送服务号消息,目前该接口有调用频率限制,具体规则参考YUNOS开放平台文档。
type YunosCloudcardBatchOpermsgSendRequest ¶
type YunosCloudcardBatchOpermsgSendRequest struct { model.Params // contains filtered or unexported fields }
YUNOS生活服务群发消息 API请求 yunos.cloudcard.batch.opermsg.send
这个是一个群发消息接口,ISV通过该接口给订阅自己服务号的所有YUNOS终端用户发送服务号消息,目前该接口有调用频率限制,具体规则参考YUNOS开放平台文档。
func NewYunosCloudcardBatchOpermsgSendRequest ¶
func NewYunosCloudcardBatchOpermsgSendRequest() *YunosCloudcardBatchOpermsgSendRequest
初始化YunosCloudcardBatchOpermsgSendRequest对象
func (YunosCloudcardBatchOpermsgSendRequest) GetApiMethodName ¶
func (r YunosCloudcardBatchOpermsgSendRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (YunosCloudcardBatchOpermsgSendRequest) GetApiParams ¶
func (r YunosCloudcardBatchOpermsgSendRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (YunosCloudcardBatchOpermsgSendRequest) GetOperBatchMsg ¶
func (r YunosCloudcardBatchOpermsgSendRequest) GetOperBatchMsg() *OperBatchMsg
OperBatchMsg Getter
func (*YunosCloudcardBatchOpermsgSendRequest) SetOperBatchMsg ¶
func (r *YunosCloudcardBatchOpermsgSendRequest) SetOperBatchMsg(operBatchMsg *OperBatchMsg) error
OperBatchMsg Setter YUNOS生活服务群消息
type YunosCloudcardBatchOpermsgSendResponse ¶
type YunosCloudcardBatchOpermsgSendResponse struct { XMLName xml.Name `xml:"yunos_cloudcard_batch_opermsg_send_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 群发消息是否成功 Result bool `json:"result,omitempty" xml:"result,omitempty"` }
YUNOS生活服务群发消息 成功返回结果
type YunosCosmoDataPushAPIResponse ¶
type YunosCosmoDataPushAPIResponse struct { model.CommonResponse YunosCosmoDataPushResponse }
COSMO-PUSH模式数据接入 API返回值 yunos.cosmo.data.push
YunOS提供外部数据源接入,并输出到多端设备上,该接口提供了PUSH模式的数据接入
type YunosCosmoDataPushRequest ¶
COSMO-PUSH模式数据接入 API请求 yunos.cosmo.data.push
YunOS提供外部数据源接入,并输出到多端设备上,该接口提供了PUSH模式的数据接入
func NewYunosCosmoDataPushRequest ¶
func NewYunosCosmoDataPushRequest() *YunosCosmoDataPushRequest
初始化YunosCosmoDataPushRequest对象
func (YunosCosmoDataPushRequest) GetApiMethodName ¶
func (r YunosCosmoDataPushRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (YunosCosmoDataPushRequest) GetApiParams ¶
func (r YunosCosmoDataPushRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (YunosCosmoDataPushRequest) GetAppId ¶
func (r YunosCosmoDataPushRequest) GetAppId() string
AppId Getter
func (YunosCosmoDataPushRequest) GetJsonModel ¶
func (r YunosCosmoDataPushRequest) GetJsonModel() string
JsonModel Getter
func (*YunosCosmoDataPushRequest) SetAppId ¶
func (r *YunosCosmoDataPushRequest) SetAppId(appId string) error
AppId Setter 业务方数据源唯一标识,由COSMO平台颁发
func (*YunosCosmoDataPushRequest) SetJsonModel ¶
func (r *YunosCosmoDataPushRequest) SetJsonModel(jsonModel string) error
JsonModel Setter 业务方推送数据,List结构的JSON序列化字符串
type YunosCosmoDataPushResponse ¶
type YunosCosmoDataPushResponse struct { XMLName xml.Name `xml:"yunos_cosmo_data_push_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // result Result *DpResult `json:"result,omitempty" xml:"result,omitempty"` }
COSMO-PUSH模式数据接入 成功返回结果
Source Files ¶
- AliyunCosmoGatewayInvokeRequest.go
- AliyunCosmoGatewayInvokeResponse.go
- DpResult.go
- OperBatchMsg.go
- RdamContext.go
- RdamGenericRequest.go
- RdamResponse.go
- YunosCloudcardBatchOpermsgSendRequest.go
- YunosCloudcardBatchOpermsgSendResponse.go
- YunosCosmoDataPushRequest.go
- YunosCosmoDataPushResponse.go
- doc.go