Documentation ¶
Overview ¶
Package cmns 包含yunos推送服务api相关结构体
Index ¶
- type CmnsMessage
- type DeviceResult
- type MessageAckResult
- type MessageDetailResult
- type MessageResult
- type Pagination
- type PaginationQueryResult
- type PushRequest
- type Receiver
- type YunosServiceCmnsCoaDeviceGetAPIRequest
- func (r YunosServiceCmnsCoaDeviceGetAPIRequest) GetApiMethodName() string
- func (r YunosServiceCmnsCoaDeviceGetAPIRequest) GetApiParams(params url.Values)
- func (r YunosServiceCmnsCoaDeviceGetAPIRequest) GetRawParams() model.Params
- func (r YunosServiceCmnsCoaDeviceGetAPIRequest) GetType() string
- func (r YunosServiceCmnsCoaDeviceGetAPIRequest) GetValue() string
- func (r *YunosServiceCmnsCoaDeviceGetAPIRequest) SetType(_type string) error
- func (r *YunosServiceCmnsCoaDeviceGetAPIRequest) SetValue(_value string) error
- type YunosServiceCmnsCoaDeviceGetAPIResponse
- type YunosServiceCmnsCoaDeviceGetAPIResponseModel
- type YunosServiceCmnsCoaDeviceIsonlineAPIRequest
- func (r YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetApiMethodName() string
- func (r YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetApiParams(params url.Values)
- func (r YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetRawParams() model.Params
- func (r YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetType() string
- func (r YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetValue() string
- func (r *YunosServiceCmnsCoaDeviceIsonlineAPIRequest) SetType(_type string) error
- func (r *YunosServiceCmnsCoaDeviceIsonlineAPIRequest) SetValue(_value string) error
- type YunosServiceCmnsCoaDeviceIsonlineAPIResponse
- type YunosServiceCmnsCoaDeviceIsonlineAPIResponseModel
- type YunosServiceCmnsCoaMessageAckAPIRequest
- func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetApiMethodName() string
- func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetApiParams(params url.Values)
- func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetDeviceToken() string
- func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetImei() string
- func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetMid() int64
- func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetRawParams() model.Params
- func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetUuid() string
- func (r *YunosServiceCmnsCoaMessageAckAPIRequest) SetDeviceToken(_deviceToken string) error
- func (r *YunosServiceCmnsCoaMessageAckAPIRequest) SetImei(_imei string) error
- func (r *YunosServiceCmnsCoaMessageAckAPIRequest) SetMid(_mid int64) error
- func (r *YunosServiceCmnsCoaMessageAckAPIRequest) SetUuid(_uuid string) error
- type YunosServiceCmnsCoaMessageAckAPIResponse
- type YunosServiceCmnsCoaMessageAckAPIResponseModel
- type YunosServiceCmnsCoaMessageAcksListAPIRequest
- func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetApiMethodName() string
- func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetApiParams(params url.Values)
- func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetDid() int64
- func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetMid() int64
- func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetPageIndex() int64
- func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetPageSize() int64
- func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetRawParams() model.Params
- func (r *YunosServiceCmnsCoaMessageAcksListAPIRequest) SetDid(_did int64) error
- func (r *YunosServiceCmnsCoaMessageAcksListAPIRequest) SetMid(_mid int64) error
- func (r *YunosServiceCmnsCoaMessageAcksListAPIRequest) SetPageIndex(_pageIndex int64) error
- func (r *YunosServiceCmnsCoaMessageAcksListAPIRequest) SetPageSize(_pageSize int64) error
- type YunosServiceCmnsCoaMessageAcksListAPIResponse
- type YunosServiceCmnsCoaMessageAcksListAPIResponseModel
- type YunosServiceCmnsCoaMessageCancelAPIRequest
- func (r YunosServiceCmnsCoaMessageCancelAPIRequest) GetApiMethodName() string
- func (r YunosServiceCmnsCoaMessageCancelAPIRequest) GetApiParams(params url.Values)
- func (r YunosServiceCmnsCoaMessageCancelAPIRequest) GetMid() int64
- func (r YunosServiceCmnsCoaMessageCancelAPIRequest) GetRawParams() model.Params
- func (r *YunosServiceCmnsCoaMessageCancelAPIRequest) SetMid(_mid int64) error
- type YunosServiceCmnsCoaMessageCancelAPIResponse
- type YunosServiceCmnsCoaMessageCancelAPIResponseModel
- type YunosServiceCmnsCoaMessageGetAPIRequest
- func (r YunosServiceCmnsCoaMessageGetAPIRequest) GetApiMethodName() string
- func (r YunosServiceCmnsCoaMessageGetAPIRequest) GetApiParams(params url.Values)
- func (r YunosServiceCmnsCoaMessageGetAPIRequest) GetMid() int64
- func (r YunosServiceCmnsCoaMessageGetAPIRequest) GetRawParams() model.Params
- func (r *YunosServiceCmnsCoaMessageGetAPIRequest) SetMid(_mid int64) error
- type YunosServiceCmnsCoaMessageGetAPIResponse
- type YunosServiceCmnsCoaMessageGetAPIResponseModel
- type YunosServiceCmnsCoaMessagePushAPIRequest
- func (r YunosServiceCmnsCoaMessagePushAPIRequest) GetApiMethodName() string
- func (r YunosServiceCmnsCoaMessagePushAPIRequest) GetApiParams(params url.Values)
- func (r YunosServiceCmnsCoaMessagePushAPIRequest) GetPushRequest() *PushRequest
- func (r YunosServiceCmnsCoaMessagePushAPIRequest) GetRawParams() model.Params
- func (r *YunosServiceCmnsCoaMessagePushAPIRequest) SetPushRequest(_pushRequest *PushRequest) error
- type YunosServiceCmnsCoaMessagePushAPIResponse
- type YunosServiceCmnsCoaMessagePushAPIResponseModel
- type YunosServiceCmnsCoaMessageresultGetAPIRequest
- func (r YunosServiceCmnsCoaMessageresultGetAPIRequest) GetApiMethodName() string
- func (r YunosServiceCmnsCoaMessageresultGetAPIRequest) GetApiParams(params url.Values)
- func (r YunosServiceCmnsCoaMessageresultGetAPIRequest) GetMid() int64
- func (r YunosServiceCmnsCoaMessageresultGetAPIRequest) GetRawParams() model.Params
- func (r *YunosServiceCmnsCoaMessageresultGetAPIRequest) SetMid(_mid int64) error
- type YunosServiceCmnsCoaMessageresultGetAPIResponse
- type YunosServiceCmnsCoaMessageresultGetAPIResponseModel
- type YunosServiceCmnsCoaPushAPIRequest
- func (r YunosServiceCmnsCoaPushAPIRequest) GetApiMethodName() string
- func (r YunosServiceCmnsCoaPushAPIRequest) GetApiParams(params url.Values)
- func (r YunosServiceCmnsCoaPushAPIRequest) GetMsgObj() *CmnsMessage
- func (r YunosServiceCmnsCoaPushAPIRequest) GetRawParams() model.Params
- func (r *YunosServiceCmnsCoaPushAPIRequest) SetMsgObj(_msgObj *CmnsMessage) error
- type YunosServiceCmnsCoaPushAPIResponse
- type YunosServiceCmnsCoaPushAPIResponseModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmnsMessage ¶
type CmnsMessage struct { // 去重码,1-6位整数,0将视为不填,如果填写则同一appKey相同的去重码消息将会被去重,只保留最新的一条,请谨慎使用 CollapseKey string `json:"collapse_key,omitempty" xml:"collapse_key,omitempty"` // 消息内容 Data string `json:"data,omitempty" xml:"data,omitempty"` // 消息图标 Ico string `json:"ico,omitempty" xml:"ico,omitempty"` // 消息参数,json字符串格式 Parameter string `json:"parameter,omitempty" xml:"parameter,omitempty"` // 为action或广播侦听通道,要求填写应用包名(package) Program string `json:"program,omitempty" xml:"program,omitempty"` // 消息标题 Title string `json:"title,omitempty" xml:"title,omitempty"` // 应用订阅主题 Topic string `json:"topic,omitempty" xml:"topic,omitempty"` // yunos4.0专用,限制消息只有指定应用来侦听 Uri string `json:"uri,omitempty" xml:"uri,omitempty"` // 消息过期时间,lunix时间戳,单位S,为空或不填时为当前时间的1小时后 Expiration int64 `json:"expiration,omitempty" xml:"expiration,omitempty"` // 消息是否加密,1:加密,0:不加密 Important int64 `json:"important,omitempty" xml:"important,omitempty"` // 消息优先权 Priority int64 `json:"priority,omitempty" xml:"priority,omitempty"` // 消息发送对象 Receiver *Receiver `json:"receiver,omitempty" xml:"receiver,omitempty"` // 响应方式 0:无响应 4:打开应用 7:发送广播 Responsetype int64 `json:"responsetype,omitempty" xml:"responsetype,omitempty"` // 显示方式 1:通知中心 6:后台 Showtype int64 `json:"showtype,omitempty" xml:"showtype,omitempty"` // 消息是否压缩,0:二进制压缩,1:utf8文本 Text int64 `json:"text,omitempty" xml:"text,omitempty"` // 仅IOS应用推送时使用,默认值为0,开发环境为1,生产环境为0 DeployStatus int64 `json:"deploy_status,omitempty" xml:"deploy_status,omitempty"` }
CmnsMessage 结构体
type DeviceResult ¶
type DeviceResult struct { // 激活时间 ActiveTime string `json:"active_time,omitempty" xml:"active_time,omitempty"` // 基带 BaseType string `json:"base_type,omitempty" xml:"base_type,omitempty"` // BSP BspType string `json:"bsp_type,omitempty" xml:"bsp_type,omitempty"` // 有线网卡mac EthMac string `json:"eth_mac,omitempty" xml:"eth_mac,omitempty"` // imei Imei string `json:"imei,omitempty" xml:"imei,omitempty"` // imsi1 Imsi1 string `json:"imsi1,omitempty" xml:"imsi1,omitempty"` // imsi2 Imsi2 string `json:"imsi2,omitempty" xml:"imsi2,omitempty"` // isVendorRom IsVendorRom string `json:"is_vendor_rom,omitempty" xml:"is_vendor_rom,omitempty"` // kp Kp string `json:"kp,omitempty" xml:"kp,omitempty"` // 网络类型 Networking string `json:"networking,omitempty" xml:"networking,omitempty"` // phoneType PhoneType string `json:"phone_type,omitempty" xml:"phone_type,omitempty"` // 系统版本 Rom string `json:"rom,omitempty" xml:"rom,omitempty"` // romTuiguang RomTuiguang string `json:"rom_tuiguang,omitempty" xml:"rom_tuiguang,omitempty"` // romVendor RomVendor string `json:"rom_vendor,omitempty" xml:"rom_vendor,omitempty"` // 设备机型 Terminal string `json:"terminal,omitempty" xml:"terminal,omitempty"` // 轻量升级版本 UpdateVersion string `json:"update_version,omitempty" xml:"update_version,omitempty"` // uuid Uuid string `json:"uuid,omitempty" xml:"uuid,omitempty"` // 无线mac WlanMac string `json:"wlan_mac,omitempty" xml:"wlan_mac,omitempty"` // 是否接收消息 AcceptMessage int64 `json:"accept_message,omitempty" xml:"accept_message,omitempty"` // 设备类型:1手机 2TV DeviceType int64 `json:"device_type,omitempty" xml:"device_type,omitempty"` // did Id int64 `json:"id,omitempty" xml:"id,omitempty"` // 最近登录时间 LoginTime int64 `json:"login_time,omitempty" xml:"login_time,omitempty"` // 是否在线,1为在线,0为离线 Online int64 `json:"online,omitempty" xml:"online,omitempty"` }
DeviceResult 结构体
type MessageAckResult ¶
type MessageAckResult struct { // 消息回复时间 AckTime string `json:"ack_time,omitempty" xml:"ack_time,omitempty"` // uuid Uuid string `json:"uuid,omitempty" xml:"uuid,omitempty"` // 设备id Did int64 `json:"did,omitempty" xml:"did,omitempty"` // 消息id Mid int64 `json:"mid,omitempty" xml:"mid,omitempty"` }
MessageAckResult 结构体
type MessageDetailResult ¶
type MessageDetailResult struct { // 消息侦听通道 Action string `json:"action,omitempty" xml:"action,omitempty"` // appKey AppKey string `json:"app_key,omitempty" xml:"app_key,omitempty"` // 应用名称 AppName string `json:"app_name,omitempty" xml:"app_name,omitempty"` // 通知消息内容 Desc string `json:"desc,omitempty" xml:"desc,omitempty"` // 消息失效时间 ExipiredTime string `json:"exipired_time,omitempty" xml:"exipired_time,omitempty"` // 消息创建时间 GmtCreateTime string `json:"gmt_create_time,omitempty" xml:"gmt_create_time,omitempty"` // 消息参数 Parameter string `json:"parameter,omitempty" xml:"parameter,omitempty"` // 消息接收者json string Receiver string `json:"receiver,omitempty" xml:"receiver,omitempty"` // 通知消息标题 Title string `json:"title,omitempty" xml:"title,omitempty"` // 消息uri,yunos4.x系统专用 Uri string `json:"uri,omitempty" xml:"uri,omitempty"` // 消息到达数 AckCnt int64 `json:"ack_cnt,omitempty" xml:"ack_cnt,omitempty"` // 消息审核状态 Audit int64 `json:"audit,omitempty" xml:"audit,omitempty"` // 消息id Id int64 `json:"id,omitempty" xml:"id,omitempty"` // 预计发送数 PredictSendCnt int64 `json:"predict_send_cnt,omitempty" xml:"predict_send_cnt,omitempty"` // 消息优先级 Priority int64 `json:"priority,omitempty" xml:"priority,omitempty"` // 消息发送状态 0:发送中,1:发送完成,2:发送过期 SendStatus int64 `json:"send_status,omitempty" xml:"send_status,omitempty"` // 消息类型,1为透传,2为通知 Type int64 `json:"type,omitempty" xml:"type,omitempty"` }
MessageDetailResult 结构体
type MessageResult ¶
type MessageResult struct { // 消息过期时间 ExpireTime int64 `json:"expire_time,omitempty" xml:"expire_time,omitempty"` // 消息预计发送数 Total2send int64 `json:"total2send,omitempty" xml:"total2send,omitempty"` // 消息审核状态1,3:待审核 2:审核通过,处于发送中 4:审核拒绝 5 已撤回 6 已去重 Audit int64 `json:"audit,omitempty" xml:"audit,omitempty"` // 消息ID Mid int64 `json:"mid,omitempty" xml:"mid,omitempty"` // 消息达到设备数 Sentcount int64 `json:"sentcount,omitempty" xml:"sentcount,omitempty"` }
MessageResult 结构体
type Pagination ¶
type Pagination struct { // 总条数 TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` // 总页数,当totalCount=0 时,totalPageCount 必须设置为 1 TotalPageCount int64 `json:"total_page_count,omitempty" xml:"total_page_count,omitempty"` // 分页查询页码 PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` // 分页每页数据集数 PageIndex int64 `json:"page_index,omitempty" xml:"page_index,omitempty"` }
Pagination 结构体
type PaginationQueryResult ¶
type PaginationQueryResult struct { // ack记录列表 List []MessageAckResult `json:"list,omitempty" xml:"list>message_ack_result,omitempty"` // 分页数据 Pagination *Pagination `json:"pagination,omitempty" xml:"pagination,omitempty"` }
PaginationQueryResult 结构体
type PushRequest ¶
type PushRequest struct { // 消息内容, 为json字符串,格式详见http://open.yunos.com/doc/detail?spm=a2c01.7698725.0002.40.ZNPFOJ&documentId=102975 Msg string `json:"msg,omitempty" xml:"msg,omitempty"` // 业务应用appKey,top调用不需要传此参数 BizAppKey string `json:"biz_app_key,omitempty" xml:"biz_app_key,omitempty"` // 去重码,为应用自己维护的消息唯一标记 CollapseKey string `json:"collapse_key,omitempty" xml:"collapse_key,omitempty"` // 设备类型,1:android or yunos,2:ios,当deviceType不指定时,服务器端对msg json字段按照android格式解析 DeviceType int64 `json:"device_type,omitempty" xml:"device_type,omitempty"` // 消息过期时间,相对时间(即多少秒后过期,最多7天),单位S,不填默认1小时过期 Expiration int64 `json:"expiration,omitempty" xml:"expiration,omitempty"` // 仅IOS应用推送时使用,0代表生成环境,1代表沙箱环境,默认值为0 IosEnvironment int64 `json:"ios_environment,omitempty" xml:"ios_environment,omitempty"` // 消息发送对象 Receiver *Receiver `json:"receiver,omitempty" xml:"receiver,omitempty"` // 消息类型,当前type只能取1,即只能发送给应用透传消息 Type int64 `json:"type,omitempty" xml:"type,omitempty"` // 消息发送优先级,范围为1-5,数字越高,优先级越大,不设置默认优先级为2 Priority int64 `json:"priority,omitempty" xml:"priority,omitempty"` }
PushRequest 结构体
type Receiver ¶
type Receiver struct { // deviceToken值,最多1000个 Data []string `json:"data,omitempty" xml:"data>string,omitempty"` // deviceToken值,最多1000个 DataList []string `json:"data_list,omitempty" xml:"data_list>string,omitempty"` // 只能填写deviceToken Type string `json:"type,omitempty" xml:"type,omitempty"` }
Receiver 结构体
type YunosServiceCmnsCoaDeviceGetAPIRequest ¶
type YunosServiceCmnsCoaDeviceGetAPIRequest struct { model.Params // contains filtered or unexported fields }
YunosServiceCmnsCoaDeviceGetAPIRequest 设备详情查询 API请求 yunos.service.cmns.coa.device.get
第三方应用开发者调用此接口查询设备详情
func NewYunosServiceCmnsCoaDeviceGetRequest ¶
func NewYunosServiceCmnsCoaDeviceGetRequest() *YunosServiceCmnsCoaDeviceGetAPIRequest
NewYunosServiceCmnsCoaDeviceGetRequest 初始化YunosServiceCmnsCoaDeviceGetAPIRequest对象
func (YunosServiceCmnsCoaDeviceGetAPIRequest) GetApiMethodName ¶
func (r YunosServiceCmnsCoaDeviceGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (YunosServiceCmnsCoaDeviceGetAPIRequest) GetApiParams ¶
func (r YunosServiceCmnsCoaDeviceGetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (YunosServiceCmnsCoaDeviceGetAPIRequest) GetRawParams ¶ added in v1.2.8
func (r YunosServiceCmnsCoaDeviceGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (YunosServiceCmnsCoaDeviceGetAPIRequest) GetType ¶
func (r YunosServiceCmnsCoaDeviceGetAPIRequest) GetType() string
GetType Type Getter
func (YunosServiceCmnsCoaDeviceGetAPIRequest) GetValue ¶
func (r YunosServiceCmnsCoaDeviceGetAPIRequest) GetValue() string
GetValue Value Getter
func (*YunosServiceCmnsCoaDeviceGetAPIRequest) SetType ¶
func (r *YunosServiceCmnsCoaDeviceGetAPIRequest) SetType(_type string) error
SetType is Type Setter 设备id类型,可以是uuid,imei,deviceToken,kp
func (*YunosServiceCmnsCoaDeviceGetAPIRequest) SetValue ¶
func (r *YunosServiceCmnsCoaDeviceGetAPIRequest) SetValue(_value string) error
SetValue is Value Setter 设备id
type YunosServiceCmnsCoaDeviceGetAPIResponse ¶
type YunosServiceCmnsCoaDeviceGetAPIResponse struct { model.CommonResponse YunosServiceCmnsCoaDeviceGetAPIResponseModel }
YunosServiceCmnsCoaDeviceGetAPIResponse 设备详情查询 API返回值 yunos.service.cmns.coa.device.get
第三方应用开发者调用此接口查询设备详情
type YunosServiceCmnsCoaDeviceGetAPIResponseModel ¶
type YunosServiceCmnsCoaDeviceGetAPIResponseModel struct { XMLName xml.Name `xml:"yunos_service_cmns_coa_device_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 设备详情 DeviceList []DeviceResult `json:"device_list,omitempty" xml:"device_list>device_result,omitempty"` // 接口查询出错提示信息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 200表示查询成功 Status int64 `json:"status,omitempty" xml:"status,omitempty"` }
YunosServiceCmnsCoaDeviceGetAPIResponseModel is 设备详情查询 成功返回结果
type YunosServiceCmnsCoaDeviceIsonlineAPIRequest ¶
type YunosServiceCmnsCoaDeviceIsonlineAPIRequest struct { model.Params // contains filtered or unexported fields }
YunosServiceCmnsCoaDeviceIsonlineAPIRequest 根据设备id查询设备是否在线 API请求 yunos.service.cmns.coa.device.isonline
根据设备id查询设备是否在线
func NewYunosServiceCmnsCoaDeviceIsonlineRequest ¶
func NewYunosServiceCmnsCoaDeviceIsonlineRequest() *YunosServiceCmnsCoaDeviceIsonlineAPIRequest
NewYunosServiceCmnsCoaDeviceIsonlineRequest 初始化YunosServiceCmnsCoaDeviceIsonlineAPIRequest对象
func (YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetApiMethodName ¶
func (r YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetApiParams ¶
func (r YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetRawParams ¶ added in v1.2.8
func (r YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetType ¶
func (r YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetType() string
GetType Type Getter
func (YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetValue ¶
func (r YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetValue() string
GetValue Value Getter
func (*YunosServiceCmnsCoaDeviceIsonlineAPIRequest) SetType ¶
func (r *YunosServiceCmnsCoaDeviceIsonlineAPIRequest) SetType(_type string) error
SetType is Type Setter 设备id类型,取值"uuid"或者"imei"或者"deviceToken"
func (*YunosServiceCmnsCoaDeviceIsonlineAPIRequest) SetValue ¶
func (r *YunosServiceCmnsCoaDeviceIsonlineAPIRequest) SetValue(_value string) error
SetValue is Value Setter 对应的设备id值
type YunosServiceCmnsCoaDeviceIsonlineAPIResponse ¶
type YunosServiceCmnsCoaDeviceIsonlineAPIResponse struct { model.CommonResponse YunosServiceCmnsCoaDeviceIsonlineAPIResponseModel }
YunosServiceCmnsCoaDeviceIsonlineAPIResponse 根据设备id查询设备是否在线 API返回值 yunos.service.cmns.coa.device.isonline
根据设备id查询设备是否在线
type YunosServiceCmnsCoaDeviceIsonlineAPIResponseModel ¶
type YunosServiceCmnsCoaDeviceIsonlineAPIResponseModel struct { XMLName xml.Name `xml:"yunos_service_cmns_coa_device_isonline_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // msg Message string `json:"message,omitempty" xml:"message,omitempty"` // data Data int64 `json:"data,omitempty" xml:"data,omitempty"` // status Status int64 `json:"status,omitempty" xml:"status,omitempty"` }
YunosServiceCmnsCoaDeviceIsonlineAPIResponseModel is 根据设备id查询设备是否在线 成功返回结果
type YunosServiceCmnsCoaMessageAckAPIRequest ¶
type YunosServiceCmnsCoaMessageAckAPIRequest struct { model.Params // contains filtered or unexported fields }
YunosServiceCmnsCoaMessageAckAPIRequest 消息回执查询 API请求 yunos.service.cmns.coa.message.ack
第三方应用开发者调用此接口查询设备是否收到消息,只能查询此appKey床发的消息
func NewYunosServiceCmnsCoaMessageAckRequest ¶
func NewYunosServiceCmnsCoaMessageAckRequest() *YunosServiceCmnsCoaMessageAckAPIRequest
NewYunosServiceCmnsCoaMessageAckRequest 初始化YunosServiceCmnsCoaMessageAckAPIRequest对象
func (YunosServiceCmnsCoaMessageAckAPIRequest) GetApiMethodName ¶
func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (YunosServiceCmnsCoaMessageAckAPIRequest) GetApiParams ¶
func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (YunosServiceCmnsCoaMessageAckAPIRequest) GetDeviceToken ¶
func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetDeviceToken() string
GetDeviceToken DeviceToken Getter
func (YunosServiceCmnsCoaMessageAckAPIRequest) GetImei ¶
func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetImei() string
GetImei Imei Getter
func (YunosServiceCmnsCoaMessageAckAPIRequest) GetMid ¶
func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetMid() int64
GetMid Mid Getter
func (YunosServiceCmnsCoaMessageAckAPIRequest) GetRawParams ¶ added in v1.2.8
func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (YunosServiceCmnsCoaMessageAckAPIRequest) GetUuid ¶
func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetUuid() string
GetUuid Uuid Getter
func (*YunosServiceCmnsCoaMessageAckAPIRequest) SetDeviceToken ¶
func (r *YunosServiceCmnsCoaMessageAckAPIRequest) SetDeviceToken(_deviceToken string) error
SetDeviceToken is DeviceToken Setter 设备唯一值deviceToken
func (*YunosServiceCmnsCoaMessageAckAPIRequest) SetImei ¶
func (r *YunosServiceCmnsCoaMessageAckAPIRequest) SetImei(_imei string) error
SetImei is Imei Setter 设备imei
func (*YunosServiceCmnsCoaMessageAckAPIRequest) SetMid ¶
func (r *YunosServiceCmnsCoaMessageAckAPIRequest) SetMid(_mid int64) error
SetMid is Mid Setter 消息ID
func (*YunosServiceCmnsCoaMessageAckAPIRequest) SetUuid ¶
func (r *YunosServiceCmnsCoaMessageAckAPIRequest) SetUuid(_uuid string) error
SetUuid is Uuid Setter 设备uuid
type YunosServiceCmnsCoaMessageAckAPIResponse ¶
type YunosServiceCmnsCoaMessageAckAPIResponse struct { model.CommonResponse YunosServiceCmnsCoaMessageAckAPIResponseModel }
YunosServiceCmnsCoaMessageAckAPIResponse 消息回执查询 API返回值 yunos.service.cmns.coa.message.ack
第三方应用开发者调用此接口查询设备是否收到消息,只能查询此appKey床发的消息
type YunosServiceCmnsCoaMessageAckAPIResponseModel ¶
type YunosServiceCmnsCoaMessageAckAPIResponseModel struct { XMLName xml.Name `xml:"yunos_service_cmns_coa_message_ack_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 接口出错提示信息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 接口调用成功 Status int64 `json:"status,omitempty" xml:"status,omitempty"` // 接口调用成功返回信息<br/>0:未到达 1:已到达 Data int64 `json:"data,omitempty" xml:"data,omitempty"` }
YunosServiceCmnsCoaMessageAckAPIResponseModel is 消息回执查询 成功返回结果
type YunosServiceCmnsCoaMessageAcksListAPIRequest ¶
type YunosServiceCmnsCoaMessageAcksListAPIRequest struct { model.Params // contains filtered or unexported fields }
YunosServiceCmnsCoaMessageAcksListAPIRequest 消息ack记录查询 API请求 yunos.service.cmns.coa.message.acks.list
第三方应用开发者调用此接口查询消息ack记录
func NewYunosServiceCmnsCoaMessageAcksListRequest ¶
func NewYunosServiceCmnsCoaMessageAcksListRequest() *YunosServiceCmnsCoaMessageAcksListAPIRequest
NewYunosServiceCmnsCoaMessageAcksListRequest 初始化YunosServiceCmnsCoaMessageAcksListAPIRequest对象
func (YunosServiceCmnsCoaMessageAcksListAPIRequest) GetApiMethodName ¶
func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (YunosServiceCmnsCoaMessageAcksListAPIRequest) GetApiParams ¶
func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (YunosServiceCmnsCoaMessageAcksListAPIRequest) GetDid ¶
func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetDid() int64
GetDid Did Getter
func (YunosServiceCmnsCoaMessageAcksListAPIRequest) GetMid ¶
func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetMid() int64
GetMid Mid Getter
func (YunosServiceCmnsCoaMessageAcksListAPIRequest) GetPageIndex ¶
func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetPageIndex() int64
GetPageIndex PageIndex Getter
func (YunosServiceCmnsCoaMessageAcksListAPIRequest) GetPageSize ¶
func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetPageSize() int64
GetPageSize PageSize Getter
func (YunosServiceCmnsCoaMessageAcksListAPIRequest) GetRawParams ¶ added in v1.2.8
func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*YunosServiceCmnsCoaMessageAcksListAPIRequest) SetDid ¶
func (r *YunosServiceCmnsCoaMessageAcksListAPIRequest) SetDid(_did int64) error
SetDid is Did Setter 设备id
func (*YunosServiceCmnsCoaMessageAcksListAPIRequest) SetMid ¶
func (r *YunosServiceCmnsCoaMessageAcksListAPIRequest) SetMid(_mid int64) error
SetMid is Mid Setter 消息id
func (*YunosServiceCmnsCoaMessageAcksListAPIRequest) SetPageIndex ¶
func (r *YunosServiceCmnsCoaMessageAcksListAPIRequest) SetPageIndex(_pageIndex int64) error
SetPageIndex is PageIndex Setter 分页查询页码
func (*YunosServiceCmnsCoaMessageAcksListAPIRequest) SetPageSize ¶
func (r *YunosServiceCmnsCoaMessageAcksListAPIRequest) SetPageSize(_pageSize int64) error
SetPageSize is PageSize Setter 分页每页数据集数
type YunosServiceCmnsCoaMessageAcksListAPIResponse ¶
type YunosServiceCmnsCoaMessageAcksListAPIResponse struct { model.CommonResponse YunosServiceCmnsCoaMessageAcksListAPIResponseModel }
YunosServiceCmnsCoaMessageAcksListAPIResponse 消息ack记录查询 API返回值 yunos.service.cmns.coa.message.acks.list
第三方应用开发者调用此接口查询消息ack记录
type YunosServiceCmnsCoaMessageAcksListAPIResponseModel ¶
type YunosServiceCmnsCoaMessageAcksListAPIResponseModel struct { XMLName xml.Name `xml:"yunos_service_cmns_coa_message_acks_list_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 接口查询出错提示信息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 分页结果对象 Data *PaginationQueryResult `json:"data,omitempty" xml:"data,omitempty"` // 200表示查询成功 Status int64 `json:"status,omitempty" xml:"status,omitempty"` }
YunosServiceCmnsCoaMessageAcksListAPIResponseModel is 消息ack记录查询 成功返回结果
type YunosServiceCmnsCoaMessageCancelAPIRequest ¶
type YunosServiceCmnsCoaMessageCancelAPIRequest struct { model.Params // contains filtered or unexported fields }
YunosServiceCmnsCoaMessageCancelAPIRequest CMNS消息撤回 API请求 yunos.service.cmns.coa.message.cancel
此接口用户撤回之前已经发出去的消息,根据消息ID撤回,只能撤回此appKey创建的消息。
func NewYunosServiceCmnsCoaMessageCancelRequest ¶
func NewYunosServiceCmnsCoaMessageCancelRequest() *YunosServiceCmnsCoaMessageCancelAPIRequest
NewYunosServiceCmnsCoaMessageCancelRequest 初始化YunosServiceCmnsCoaMessageCancelAPIRequest对象
func (YunosServiceCmnsCoaMessageCancelAPIRequest) GetApiMethodName ¶
func (r YunosServiceCmnsCoaMessageCancelAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (YunosServiceCmnsCoaMessageCancelAPIRequest) GetApiParams ¶
func (r YunosServiceCmnsCoaMessageCancelAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (YunosServiceCmnsCoaMessageCancelAPIRequest) GetMid ¶
func (r YunosServiceCmnsCoaMessageCancelAPIRequest) GetMid() int64
GetMid Mid Getter
func (YunosServiceCmnsCoaMessageCancelAPIRequest) GetRawParams ¶ added in v1.2.8
func (r YunosServiceCmnsCoaMessageCancelAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*YunosServiceCmnsCoaMessageCancelAPIRequest) SetMid ¶
func (r *YunosServiceCmnsCoaMessageCancelAPIRequest) SetMid(_mid int64) error
SetMid is Mid Setter 消息ID
type YunosServiceCmnsCoaMessageCancelAPIResponse ¶
type YunosServiceCmnsCoaMessageCancelAPIResponse struct { model.CommonResponse YunosServiceCmnsCoaMessageCancelAPIResponseModel }
YunosServiceCmnsCoaMessageCancelAPIResponse CMNS消息撤回 API返回值 yunos.service.cmns.coa.message.cancel
此接口用户撤回之前已经发出去的消息,根据消息ID撤回,只能撤回此appKey创建的消息。
type YunosServiceCmnsCoaMessageCancelAPIResponseModel ¶
type YunosServiceCmnsCoaMessageCancelAPIResponseModel struct { XMLName xml.Name `xml:"yunos_service_cmns_coa_message_cancel_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 调用出错时返回信息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 返回状态 200表示调用成功 Status int64 `json:"status,omitempty" xml:"status,omitempty"` // true:撤回成功<br/>false:撤回失败 Data bool `json:"data,omitempty" xml:"data,omitempty"` }
YunosServiceCmnsCoaMessageCancelAPIResponseModel is CMNS消息撤回 成功返回结果
type YunosServiceCmnsCoaMessageGetAPIRequest ¶
type YunosServiceCmnsCoaMessageGetAPIRequest struct { model.Params // contains filtered or unexported fields }
YunosServiceCmnsCoaMessageGetAPIRequest 消息详情查询 API请求 yunos.service.cmns.coa.message.get
第三方应用开发者调用此接口查询消息详情,只能查询此appKey发的消息
func NewYunosServiceCmnsCoaMessageGetRequest ¶
func NewYunosServiceCmnsCoaMessageGetRequest() *YunosServiceCmnsCoaMessageGetAPIRequest
NewYunosServiceCmnsCoaMessageGetRequest 初始化YunosServiceCmnsCoaMessageGetAPIRequest对象
func (YunosServiceCmnsCoaMessageGetAPIRequest) GetApiMethodName ¶
func (r YunosServiceCmnsCoaMessageGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (YunosServiceCmnsCoaMessageGetAPIRequest) GetApiParams ¶
func (r YunosServiceCmnsCoaMessageGetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (YunosServiceCmnsCoaMessageGetAPIRequest) GetMid ¶
func (r YunosServiceCmnsCoaMessageGetAPIRequest) GetMid() int64
GetMid Mid Getter
func (YunosServiceCmnsCoaMessageGetAPIRequest) GetRawParams ¶ added in v1.2.8
func (r YunosServiceCmnsCoaMessageGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*YunosServiceCmnsCoaMessageGetAPIRequest) SetMid ¶
func (r *YunosServiceCmnsCoaMessageGetAPIRequest) SetMid(_mid int64) error
SetMid is Mid Setter 消息id
type YunosServiceCmnsCoaMessageGetAPIResponse ¶
type YunosServiceCmnsCoaMessageGetAPIResponse struct { model.CommonResponse YunosServiceCmnsCoaMessageGetAPIResponseModel }
YunosServiceCmnsCoaMessageGetAPIResponse 消息详情查询 API返回值 yunos.service.cmns.coa.message.get
第三方应用开发者调用此接口查询消息详情,只能查询此appKey发的消息
type YunosServiceCmnsCoaMessageGetAPIResponseModel ¶
type YunosServiceCmnsCoaMessageGetAPIResponseModel struct { XMLName xml.Name `xml:"yunos_service_cmns_coa_message_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 接口查询出错提示信息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 消息内容 Data *MessageDetailResult `json:"data,omitempty" xml:"data,omitempty"` // 200表示查询成功 Status int64 `json:"status,omitempty" xml:"status,omitempty"` }
YunosServiceCmnsCoaMessageGetAPIResponseModel is 消息详情查询 成功返回结果
type YunosServiceCmnsCoaMessagePushAPIRequest ¶
type YunosServiceCmnsCoaMessagePushAPIRequest struct { model.Params // contains filtered or unexported fields }
YunosServiceCmnsCoaMessagePushAPIRequest 消息推送接口 API请求 yunos.service.cmns.coa.message.push
调用CMNS系统的pushMessage接口实现消息通知到YUNOS设备的第三方应用软件。
func NewYunosServiceCmnsCoaMessagePushRequest ¶
func NewYunosServiceCmnsCoaMessagePushRequest() *YunosServiceCmnsCoaMessagePushAPIRequest
NewYunosServiceCmnsCoaMessagePushRequest 初始化YunosServiceCmnsCoaMessagePushAPIRequest对象
func (YunosServiceCmnsCoaMessagePushAPIRequest) GetApiMethodName ¶
func (r YunosServiceCmnsCoaMessagePushAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (YunosServiceCmnsCoaMessagePushAPIRequest) GetApiParams ¶
func (r YunosServiceCmnsCoaMessagePushAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (YunosServiceCmnsCoaMessagePushAPIRequest) GetPushRequest ¶
func (r YunosServiceCmnsCoaMessagePushAPIRequest) GetPushRequest() *PushRequest
GetPushRequest PushRequest Getter
func (YunosServiceCmnsCoaMessagePushAPIRequest) GetRawParams ¶ added in v1.2.8
func (r YunosServiceCmnsCoaMessagePushAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*YunosServiceCmnsCoaMessagePushAPIRequest) SetPushRequest ¶
func (r *YunosServiceCmnsCoaMessagePushAPIRequest) SetPushRequest(_pushRequest *PushRequest) error
SetPushRequest is PushRequest Setter 消息推送请求对象
type YunosServiceCmnsCoaMessagePushAPIResponse ¶
type YunosServiceCmnsCoaMessagePushAPIResponse struct { model.CommonResponse YunosServiceCmnsCoaMessagePushAPIResponseModel }
YunosServiceCmnsCoaMessagePushAPIResponse 消息推送接口 API返回值 yunos.service.cmns.coa.message.push
调用CMNS系统的pushMessage接口实现消息通知到YUNOS设备的第三方应用软件。
type YunosServiceCmnsCoaMessagePushAPIResponseModel ¶
type YunosServiceCmnsCoaMessagePushAPIResponseModel struct { XMLName xml.Name `xml:"yunos_service_cmns_coa_message_push_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 消息发送提示 Message string `json:"message,omitempty" xml:"message,omitempty"` // 消息ID,失败则为null Mid int64 `json:"mid,omitempty" xml:"mid,omitempty"` // 200:消息发送成功 Status int64 `json:"status,omitempty" xml:"status,omitempty"` }
YunosServiceCmnsCoaMessagePushAPIResponseModel is 消息推送接口 成功返回结果
type YunosServiceCmnsCoaMessageresultGetAPIRequest ¶
type YunosServiceCmnsCoaMessageresultGetAPIRequest struct { model.Params // contains filtered or unexported fields }
YunosServiceCmnsCoaMessageresultGetAPIRequest CMNS消息发送到达查询 API请求 yunos.service.cmns.coa.messageresult.get
CMNS消息发送到达查询,根据消息ID查询,仅能查询该appKey所发送的消息
func NewYunosServiceCmnsCoaMessageresultGetRequest ¶
func NewYunosServiceCmnsCoaMessageresultGetRequest() *YunosServiceCmnsCoaMessageresultGetAPIRequest
NewYunosServiceCmnsCoaMessageresultGetRequest 初始化YunosServiceCmnsCoaMessageresultGetAPIRequest对象
func (YunosServiceCmnsCoaMessageresultGetAPIRequest) GetApiMethodName ¶
func (r YunosServiceCmnsCoaMessageresultGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (YunosServiceCmnsCoaMessageresultGetAPIRequest) GetApiParams ¶
func (r YunosServiceCmnsCoaMessageresultGetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (YunosServiceCmnsCoaMessageresultGetAPIRequest) GetMid ¶
func (r YunosServiceCmnsCoaMessageresultGetAPIRequest) GetMid() int64
GetMid Mid Getter
func (YunosServiceCmnsCoaMessageresultGetAPIRequest) GetRawParams ¶ added in v1.2.8
func (r YunosServiceCmnsCoaMessageresultGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*YunosServiceCmnsCoaMessageresultGetAPIRequest) SetMid ¶
func (r *YunosServiceCmnsCoaMessageresultGetAPIRequest) SetMid(_mid int64) error
SetMid is Mid Setter 消息ID
type YunosServiceCmnsCoaMessageresultGetAPIResponse ¶
type YunosServiceCmnsCoaMessageresultGetAPIResponse struct { model.CommonResponse YunosServiceCmnsCoaMessageresultGetAPIResponseModel }
YunosServiceCmnsCoaMessageresultGetAPIResponse CMNS消息发送到达查询 API返回值 yunos.service.cmns.coa.messageresult.get
CMNS消息发送到达查询,根据消息ID查询,仅能查询该appKey所发送的消息
type YunosServiceCmnsCoaMessageresultGetAPIResponseModel ¶
type YunosServiceCmnsCoaMessageresultGetAPIResponseModel struct { XMLName xml.Name `xml:"yunos_service_cmns_coa_messageresult_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 接口查询出错提示信息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 200表示查询成功 Status int64 `json:"status,omitempty" xml:"status,omitempty"` // 具体的消息返回值 Data *MessageResult `json:"data,omitempty" xml:"data,omitempty"` }
YunosServiceCmnsCoaMessageresultGetAPIResponseModel is CMNS消息发送到达查询 成功返回结果
type YunosServiceCmnsCoaPushAPIRequest ¶
type YunosServiceCmnsCoaPushAPIRequest struct { model.Params // contains filtered or unexported fields }
YunosServiceCmnsCoaPushAPIRequest 消息推送接口 API请求 yunos.service.cmns.coa.push
调用CMNS系统的pushMessage接口实现消息通知到YUNOS设备的第三方应用软件。
func NewYunosServiceCmnsCoaPushRequest ¶
func NewYunosServiceCmnsCoaPushRequest() *YunosServiceCmnsCoaPushAPIRequest
NewYunosServiceCmnsCoaPushRequest 初始化YunosServiceCmnsCoaPushAPIRequest对象
func (YunosServiceCmnsCoaPushAPIRequest) GetApiMethodName ¶
func (r YunosServiceCmnsCoaPushAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (YunosServiceCmnsCoaPushAPIRequest) GetApiParams ¶
func (r YunosServiceCmnsCoaPushAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (YunosServiceCmnsCoaPushAPIRequest) GetMsgObj ¶
func (r YunosServiceCmnsCoaPushAPIRequest) GetMsgObj() *CmnsMessage
GetMsgObj MsgObj Getter
func (YunosServiceCmnsCoaPushAPIRequest) GetRawParams ¶ added in v1.2.8
func (r YunosServiceCmnsCoaPushAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*YunosServiceCmnsCoaPushAPIRequest) SetMsgObj ¶
func (r *YunosServiceCmnsCoaPushAPIRequest) SetMsgObj(_msgObj *CmnsMessage) error
SetMsgObj is MsgObj Setter 消息结构对象
type YunosServiceCmnsCoaPushAPIResponse ¶
type YunosServiceCmnsCoaPushAPIResponse struct { model.CommonResponse YunosServiceCmnsCoaPushAPIResponseModel }
YunosServiceCmnsCoaPushAPIResponse 消息推送接口 API返回值 yunos.service.cmns.coa.push
调用CMNS系统的pushMessage接口实现消息通知到YUNOS设备的第三方应用软件。
type YunosServiceCmnsCoaPushAPIResponseModel ¶
type YunosServiceCmnsCoaPushAPIResponseModel struct { XMLName xml.Name `xml:"yunos_service_cmns_coa_push_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 消息发送提示 Message string `json:"message,omitempty" xml:"message,omitempty"` // 消息ID,失败则为null Mid int64 `json:"mid,omitempty" xml:"mid,omitempty"` // 200:消息发送成功 Status int64 `json:"status,omitempty" xml:"status,omitempty"` }
YunosServiceCmnsCoaPushAPIResponseModel is 消息推送接口 成功返回结果
Source Files ¶
- CmnsMessage.go
- DeviceResult.go
- MessageAckResult.go
- MessageDetailResult.go
- MessageResult.go
- Pagination.go
- PaginationQueryResult.go
- PushRequest.go
- Receiver.go
- YunosServiceCmnsCoaDeviceGetAPIRequest.go
- YunosServiceCmnsCoaDeviceGetAPIResponse.go
- YunosServiceCmnsCoaDeviceIsonlineAPIRequest.go
- YunosServiceCmnsCoaDeviceIsonlineAPIResponse.go
- YunosServiceCmnsCoaMessageAckAPIRequest.go
- YunosServiceCmnsCoaMessageAckAPIResponse.go
- YunosServiceCmnsCoaMessageAcksListAPIRequest.go
- YunosServiceCmnsCoaMessageAcksListAPIResponse.go
- YunosServiceCmnsCoaMessageCancelAPIRequest.go
- YunosServiceCmnsCoaMessageCancelAPIResponse.go
- YunosServiceCmnsCoaMessageGetAPIRequest.go
- YunosServiceCmnsCoaMessageGetAPIResponse.go
- YunosServiceCmnsCoaMessagePushAPIRequest.go
- YunosServiceCmnsCoaMessagePushAPIResponse.go
- YunosServiceCmnsCoaMessageresultGetAPIRequest.go
- YunosServiceCmnsCoaMessageresultGetAPIResponse.go
- YunosServiceCmnsCoaPushAPIRequest.go
- YunosServiceCmnsCoaPushAPIResponse.go
- doc.go