Parcourir la source

由楚衡发起的PUSH SDK自动发布, BUILD_ID=371, 版本号:0.10.0

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao il y a 7 ans
Parent
commit
fe921cdb5c

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-01-29 Version: 0.10.0
+1, Add 'notificationChannel' parameter to Push API
+
 2018-01-24 Version: 0.9.3
 1,  Fixed a problem that the ActiveAlert interface name is not standard
 2,  Update ActiveAlert interface : ListProductOfActiveAlert / DisableActiveAlert / EnableActiveAlert

+ 0 - 1
services/push/bind_alias.go

@@ -38,7 +38,6 @@ func (client *Client) BindAliasWithChan(request *BindAliasRequest) (<-chan *Bind
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err

+ 0 - 1
services/push/bind_phone.go

@@ -38,7 +38,6 @@ func (client *Client) BindPhoneWithChan(request *BindPhoneRequest) (<-chan *Bind
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err

+ 2 - 3
services/push/bind_tag.go

@@ -38,7 +38,6 @@ func (client *Client) BindTagWithChan(request *BindTagRequest) (<-chan *BindTagR
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err
@@ -68,10 +67,10 @@ func (client *Client) BindTagWithCallback(request *BindTagRequest, callback func
 
 type BindTagRequest struct {
 	*requests.RpcRequest
-	KeyType   string           `position:"Query" name:"KeyType"`
-	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 	TagName   string           `position:"Query" name:"TagName"`
 	ClientKey string           `position:"Query" name:"ClientKey"`
+	AppKey    requests.Integer `position:"Query" name:"AppKey"`
+	KeyType   string           `position:"Query" name:"KeyType"`
 }
 
 type BindTagResponse struct {

+ 1 - 2
services/push/cancel_push.go

@@ -38,7 +38,6 @@ func (client *Client) CancelPushWithChan(request *CancelPushRequest) (<-chan *Ca
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err
@@ -68,8 +67,8 @@ func (client *Client) CancelPushWithCallback(request *CancelPushRequest, callbac
 
 type CancelPushRequest struct {
 	*requests.RpcRequest
+	MessageId requests.Integer `position:"Query" name:"MessageId"`
 	AppKey    requests.Integer `position:"Query" name:"AppKey"`
-	MessageId string           `position:"Query" name:"MessageId"`
 }
 
 type CancelPushResponse struct {

+ 0 - 1
services/push/check_device.go

@@ -38,7 +38,6 @@ func (client *Client) CheckDeviceWithChan(request *CheckDeviceRequest) (<-chan *
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err

+ 1 - 2
services/push/check_devices.go

@@ -38,7 +38,6 @@ func (client *Client) CheckDevicesWithChan(request *CheckDevicesRequest) (<-chan
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err
@@ -68,8 +67,8 @@ func (client *Client) CheckDevicesWithCallback(request *CheckDevicesRequest, cal
 
 type CheckDevicesRequest struct {
 	*requests.RpcRequest
-	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 	DeviceIds string           `position:"Query" name:"DeviceIds"`
+	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 }
 
 type CheckDevicesResponse struct {

+ 2 - 3
services/push/list_push_records.go

@@ -38,7 +38,6 @@ func (client *Client) ListPushRecordsWithChan(request *ListPushRecordsRequest) (
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err
@@ -68,11 +67,11 @@ func (client *Client) ListPushRecordsWithCallback(request *ListPushRecordsReques
 
 type ListPushRecordsRequest struct {
 	*requests.RpcRequest
-	EndTime   string           `position:"Query" name:"EndTime"`
 	PageSize  requests.Integer `position:"Query" name:"PageSize"`
+	EndTime   string           `position:"Query" name:"EndTime"`
+	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 	StartTime string           `position:"Query" name:"StartTime"`
 	Page      requests.Integer `position:"Query" name:"Page"`
-	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 	PushType  string           `position:"Query" name:"PushType"`
 }
 

+ 0 - 1
services/push/list_summary_apps.go

@@ -38,7 +38,6 @@ func (client *Client) ListSummaryAppsWithChan(request *ListSummaryAppsRequest) (
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err

+ 0 - 1
services/push/list_tags.go

@@ -38,7 +38,6 @@ func (client *Client) ListTagsWithChan(request *ListTagsRequest) (<-chan *ListTa
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err

+ 36 - 36
services/push/push.go

@@ -38,7 +38,6 @@ func (client *Client) PushWithChan(request *PushRequest) (<-chan *PushResponse,
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err
@@ -68,50 +67,51 @@ func (client *Client) PushWithCallback(request *PushRequest, callback func(respo
 
 type PushRequest struct {
 	*requests.RpcRequest
-	AndroidXiaoMiNotifyTitle       string           `position:"Query" name:"AndroidXiaoMiNotifyTitle"`
-	AndroidNotificationBarPriority requests.Integer `position:"Query" name:"AndroidNotificationBarPriority"`
-	Body                           string           `position:"Query" name:"Body"`
-	IOSBadgeAutoIncrement          requests.Boolean `position:"Query" name:"iOSBadgeAutoIncrement"`
-	AndroidOpenUrl                 string           `position:"Query" name:"AndroidOpenUrl"`
-	TargetValue                    string           `position:"Query" name:"TargetValue"`
-	AndroidPopupBody               string           `position:"Query" name:"AndroidPopupBody"`
-	SendSpeed                      requests.Integer `position:"Query" name:"SendSpeed"`
-	AndroidPopupTitle              string           `position:"Query" name:"AndroidPopupTitle"`
+	AndroidNotificationBarType     requests.Integer `position:"Query" name:"AndroidNotificationBarType"`
+	SmsSendPolicy                  requests.Integer `position:"Query" name:"SmsSendPolicy"`
 	AndroidExtParameters           string           `position:"Query" name:"AndroidExtParameters"`
-	AppKey                         requests.Integer `position:"Query" name:"AppKey"`
-	AndroidXiaoMiActivity          string           `position:"Query" name:"AndroidXiaoMiActivity"`
-	SmsDelaySecs                   requests.Integer `position:"Query" name:"SmsDelaySecs"`
 	IOSBadge                       requests.Integer `position:"Query" name:"iOSBadge"`
-	IOSExtParameters               string           `position:"Query" name:"iOSExtParameters"`
-	IOSRemind                      requests.Boolean `position:"Query" name:"iOSRemind"`
-	PushType                       string           `position:"Query" name:"PushType"`
-	IOSMusic                       string           `position:"Query" name:"iOSMusic"`
-	IOSRemindBody                  string           `position:"Query" name:"iOSRemindBody"`
-	PushTime                       string           `position:"Query" name:"PushTime"`
-	SmsSignName                    string           `position:"Query" name:"SmsSignName"`
+	IOSBadgeAutoIncrement          requests.Boolean `position:"Query" name:"iOSBadgeAutoIncrement"`
+	AndroidOpenType                string           `position:"Query" name:"AndroidOpenType"`
 	Title                          string           `position:"Query" name:"Title"`
-	SmsTemplateName                string           `position:"Query" name:"SmsTemplateName"`
-	IOSSubtitle                    string           `position:"Query" name:"iOSSubtitle"`
-	JobKey                         string           `position:"Query" name:"JobKey"`
-	AndroidActivity                string           `position:"Query" name:"AndroidActivity"`
-	ExpireTime                     string           `position:"Query" name:"ExpireTime"`
-	SmsSendPolicy                  requests.Integer `position:"Query" name:"SmsSendPolicy"`
-	IOSSilentNotification          requests.Boolean `position:"Query" name:"iOSSilentNotification"`
+	Body                           string           `position:"Query" name:"Body"`
+	DeviceType                     string           `position:"Query" name:"DeviceType"`
+	PushTime                       string           `position:"Query" name:"PushTime"`
+	SmsDelaySecs                   requests.Integer `position:"Query" name:"SmsDelaySecs"`
+	SendSpeed                      requests.Integer `position:"Query" name:"SendSpeed"`
 	AndroidPopupActivity           string           `position:"Query" name:"AndroidPopupActivity"`
-	AndroidNotificationBarType     requests.Integer `position:"Query" name:"AndroidNotificationBarType"`
-	AndroidOpenType                string           `position:"Query" name:"AndroidOpenType"`
-	AndroidNotifyType              string           `position:"Query" name:"AndroidNotifyType"`
+	IOSRemindBody                  string           `position:"Query" name:"iOSRemindBody"`
 	BatchNumber                    string           `position:"Query" name:"BatchNumber"`
-	IOSNotificationCategory        string           `position:"Query" name:"iOSNotificationCategory"`
+	IOSExtParameters               string           `position:"Query" name:"iOSExtParameters"`
+	AndroidNotifyType              string           `position:"Query" name:"AndroidNotifyType"`
+	AndroidPopupTitle              string           `position:"Query" name:"AndroidPopupTitle"`
+	IOSMusic                       string           `position:"Query" name:"iOSMusic"`
 	IOSApnsEnv                     string           `position:"Query" name:"iOSApnsEnv"`
-	SmsParams                      string           `position:"Query" name:"SmsParams"`
-	StoreOffline                   requests.Boolean `position:"Query" name:"StoreOffline"`
 	IOSMutableContent              requests.Boolean `position:"Query" name:"iOSMutableContent"`
-	AndroidXiaoMiNotifyBody        string           `position:"Query" name:"AndroidXiaoMiNotifyBody"`
+	AndroidNotificationBarPriority requests.Integer `position:"Query" name:"AndroidNotificationBarPriority"`
+	ExpireTime                     string           `position:"Query" name:"ExpireTime"`
+	SmsTemplateName                string           `position:"Query" name:"SmsTemplateName"`
+	AndroidPopupBody               string           `position:"Query" name:"AndroidPopupBody"`
+	IOSNotificationCategory        string           `position:"Query" name:"iOSNotificationCategory"`
+	StoreOffline                   requests.Boolean `position:"Query" name:"StoreOffline"`
+	IOSSilentNotification          requests.Boolean `position:"Query" name:"iOSSilentNotification"`
+	SmsParams                      string           `position:"Query" name:"SmsParams"`
+	JobKey                         string           `position:"Query" name:"JobKey"`
+	Target                         string           `position:"Query" name:"Target"`
+	AndroidOpenUrl                 string           `position:"Query" name:"AndroidOpenUrl"`
+	AndroidNotificationChannel     string           `position:"Query" name:"AndroidNotificationChannel"`
 	AndroidRemind                  requests.Boolean `position:"Query" name:"AndroidRemind"`
+	AndroidActivity                string           `position:"Query" name:"AndroidActivity"`
+	AndroidXiaoMiNotifyBody        string           `position:"Query" name:"AndroidXiaoMiNotifyBody"`
+	IOSSubtitle                    string           `position:"Query" name:"iOSSubtitle"`
+	SmsSignName                    string           `position:"Query" name:"SmsSignName"`
+	IOSRemind                      requests.Boolean `position:"Query" name:"iOSRemind"`
+	AppKey                         requests.Integer `position:"Query" name:"AppKey"`
+	TargetValue                    string           `position:"Query" name:"TargetValue"`
 	AndroidMusic                   string           `position:"Query" name:"AndroidMusic"`
-	Target                         string           `position:"Query" name:"Target"`
-	DeviceType                     string           `position:"Query" name:"DeviceType"`
+	AndroidXiaoMiActivity          string           `position:"Query" name:"AndroidXiaoMiActivity"`
+	AndroidXiaoMiNotifyTitle       string           `position:"Query" name:"AndroidXiaoMiNotifyTitle"`
+	PushType                       string           `position:"Query" name:"PushType"`
 }
 
 type PushResponse struct {

+ 3 - 4
services/push/push_message_to_android.go

@@ -38,7 +38,6 @@ func (client *Client) PushMessageToAndroidWithChan(request *PushMessageToAndroid
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err
@@ -68,12 +67,12 @@ func (client *Client) PushMessageToAndroidWithCallback(request *PushMessageToAnd
 
 type PushMessageToAndroidRequest struct {
 	*requests.RpcRequest
-	Body        string           `position:"Query" name:"Body"`
-	Title       string           `position:"Query" name:"Title"`
+	AppKey      requests.Integer `position:"Query" name:"AppKey"`
 	TargetValue string           `position:"Query" name:"TargetValue"`
+	Title       string           `position:"Query" name:"Title"`
+	Body        string           `position:"Query" name:"Body"`
 	JobKey      string           `position:"Query" name:"JobKey"`
 	Target      string           `position:"Query" name:"Target"`
-	AppKey      requests.Integer `position:"Query" name:"AppKey"`
 }
 
 type PushMessageToAndroidResponse struct {

+ 3 - 4
services/push/push_message_toi_os.go

@@ -38,7 +38,6 @@ func (client *Client) PushMessageToiOSWithChan(request *PushMessageToiOSRequest)
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err
@@ -68,12 +67,12 @@ func (client *Client) PushMessageToiOSWithCallback(request *PushMessageToiOSRequ
 
 type PushMessageToiOSRequest struct {
 	*requests.RpcRequest
-	Body        string           `position:"Query" name:"Body"`
-	Title       string           `position:"Query" name:"Title"`
+	AppKey      requests.Integer `position:"Query" name:"AppKey"`
 	TargetValue string           `position:"Query" name:"TargetValue"`
+	Title       string           `position:"Query" name:"Title"`
+	Body        string           `position:"Query" name:"Body"`
 	JobKey      string           `position:"Query" name:"JobKey"`
 	Target      string           `position:"Query" name:"Target"`
-	AppKey      requests.Integer `position:"Query" name:"AppKey"`
 }
 
 type PushMessageToiOSResponse struct {

+ 3 - 4
services/push/push_notice_to_android.go

@@ -38,7 +38,6 @@ func (client *Client) PushNoticeToAndroidWithChan(request *PushNoticeToAndroidRe
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err
@@ -68,13 +67,13 @@ func (client *Client) PushNoticeToAndroidWithCallback(request *PushNoticeToAndro
 
 type PushNoticeToAndroidRequest struct {
 	*requests.RpcRequest
-	Body          string           `position:"Query" name:"Body"`
-	Title         string           `position:"Query" name:"Title"`
 	ExtParameters string           `position:"Query" name:"ExtParameters"`
+	AppKey        requests.Integer `position:"Query" name:"AppKey"`
 	TargetValue   string           `position:"Query" name:"TargetValue"`
+	Title         string           `position:"Query" name:"Title"`
+	Body          string           `position:"Query" name:"Body"`
 	JobKey        string           `position:"Query" name:"JobKey"`
 	Target        string           `position:"Query" name:"Target"`
-	AppKey        requests.Integer `position:"Query" name:"AppKey"`
 }
 
 type PushNoticeToAndroidResponse struct {

+ 4 - 5
services/push/push_notice_toi_os.go

@@ -38,7 +38,6 @@ func (client *Client) PushNoticeToiOSWithChan(request *PushNoticeToiOSRequest) (
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err
@@ -68,14 +67,14 @@ func (client *Client) PushNoticeToiOSWithCallback(request *PushNoticeToiOSReques
 
 type PushNoticeToiOSRequest struct {
 	*requests.RpcRequest
-	Body          string           `position:"Query" name:"Body"`
-	Title         string           `position:"Query" name:"Title"`
-	ApnsEnv       string           `position:"Query" name:"ApnsEnv"`
 	ExtParameters string           `position:"Query" name:"ExtParameters"`
+	ApnsEnv       string           `position:"Query" name:"ApnsEnv"`
+	AppKey        requests.Integer `position:"Query" name:"AppKey"`
 	TargetValue   string           `position:"Query" name:"TargetValue"`
+	Title         string           `position:"Query" name:"Title"`
+	Body          string           `position:"Query" name:"Body"`
 	JobKey        string           `position:"Query" name:"JobKey"`
 	Target        string           `position:"Query" name:"Target"`
-	AppKey        requests.Integer `position:"Query" name:"AppKey"`
 }
 
 type PushNoticeToiOSResponse struct {

+ 0 - 1
services/push/query_aliases.go

@@ -38,7 +38,6 @@ func (client *Client) QueryAliasesWithChan(request *QueryAliasesRequest) (<-chan
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err

+ 0 - 1
services/push/query_device_info.go

@@ -38,7 +38,6 @@ func (client *Client) QueryDeviceInfoWithChan(request *QueryDeviceInfoRequest) (
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err

+ 1 - 2
services/push/query_device_stat.go

@@ -38,7 +38,6 @@ func (client *Client) QueryDeviceStatWithChan(request *QueryDeviceStatRequest) (
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err
@@ -69,8 +68,8 @@ func (client *Client) QueryDeviceStatWithCallback(request *QueryDeviceStatReques
 type QueryDeviceStatRequest struct {
 	*requests.RpcRequest
 	EndTime    string           `position:"Query" name:"EndTime"`
-	StartTime  string           `position:"Query" name:"StartTime"`
 	AppKey     requests.Integer `position:"Query" name:"AppKey"`
+	StartTime  string           `position:"Query" name:"StartTime"`
 	DeviceType string           `position:"Query" name:"DeviceType"`
 	QueryType  string           `position:"Query" name:"QueryType"`
 }

+ 1 - 2
services/push/query_push_detail.go

@@ -38,7 +38,6 @@ func (client *Client) QueryPushDetailWithChan(request *QueryPushDetailRequest) (
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err
@@ -68,8 +67,8 @@ func (client *Client) QueryPushDetailWithCallback(request *QueryPushDetailReques
 
 type QueryPushDetailRequest struct {
 	*requests.RpcRequest
-	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 	MessageId string           `position:"Query" name:"MessageId"`
+	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 }
 
 type QueryPushDetailResponse struct {

+ 2 - 3
services/push/query_push_stat_by_app.go

@@ -38,7 +38,6 @@ func (client *Client) QueryPushStatByAppWithChan(request *QueryPushStatByAppRequ
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err
@@ -68,10 +67,10 @@ func (client *Client) QueryPushStatByAppWithCallback(request *QueryPushStatByApp
 
 type QueryPushStatByAppRequest struct {
 	*requests.RpcRequest
-	EndTime     string           `position:"Query" name:"EndTime"`
-	StartTime   string           `position:"Query" name:"StartTime"`
 	Granularity string           `position:"Query" name:"Granularity"`
+	EndTime     string           `position:"Query" name:"EndTime"`
 	AppKey      requests.Integer `position:"Query" name:"AppKey"`
+	StartTime   string           `position:"Query" name:"StartTime"`
 }
 
 type QueryPushStatByAppResponse struct {

+ 1 - 2
services/push/query_push_stat_by_msg.go

@@ -38,7 +38,6 @@ func (client *Client) QueryPushStatByMsgWithChan(request *QueryPushStatByMsgRequ
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err
@@ -68,8 +67,8 @@ func (client *Client) QueryPushStatByMsgWithCallback(request *QueryPushStatByMsg
 
 type QueryPushStatByMsgRequest struct {
 	*requests.RpcRequest
-	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 	MessageId string           `position:"Query" name:"MessageId"`
+	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 }
 
 type QueryPushStatByMsgResponse struct {

+ 2 - 3
services/push/query_tags.go

@@ -38,7 +38,6 @@ func (client *Client) QueryTagsWithChan(request *QueryTagsRequest) (<-chan *Quer
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err
@@ -68,9 +67,9 @@ func (client *Client) QueryTagsWithCallback(request *QueryTagsRequest, callback
 
 type QueryTagsRequest struct {
 	*requests.RpcRequest
-	KeyType   string           `position:"Query" name:"KeyType"`
-	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 	ClientKey string           `position:"Query" name:"ClientKey"`
+	AppKey    requests.Integer `position:"Query" name:"AppKey"`
+	KeyType   string           `position:"Query" name:"KeyType"`
 }
 
 type QueryTagsResponse struct {

+ 2 - 3
services/push/query_unique_device_stat.go

@@ -38,7 +38,6 @@ func (client *Client) QueryUniqueDeviceStatWithChan(request *QueryUniqueDeviceSt
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err
@@ -68,10 +67,10 @@ func (client *Client) QueryUniqueDeviceStatWithCallback(request *QueryUniqueDevi
 
 type QueryUniqueDeviceStatRequest struct {
 	*requests.RpcRequest
-	EndTime     string           `position:"Query" name:"EndTime"`
-	StartTime   string           `position:"Query" name:"StartTime"`
 	Granularity string           `position:"Query" name:"Granularity"`
+	EndTime     string           `position:"Query" name:"EndTime"`
 	AppKey      requests.Integer `position:"Query" name:"AppKey"`
+	StartTime   string           `position:"Query" name:"StartTime"`
 }
 
 type QueryUniqueDeviceStatResponse struct {

+ 1 - 2
services/push/remove_tag.go

@@ -38,7 +38,6 @@ func (client *Client) RemoveTagWithChan(request *RemoveTagRequest) (<-chan *Remo
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err
@@ -68,8 +67,8 @@ func (client *Client) RemoveTagWithCallback(request *RemoveTagRequest, callback
 
 type RemoveTagRequest struct {
 	*requests.RpcRequest
-	AppKey  requests.Integer `position:"Query" name:"AppKey"`
 	TagName string           `position:"Query" name:"TagName"`
+	AppKey  requests.Integer `position:"Query" name:"AppKey"`
 }
 
 type RemoveTagResponse struct {

+ 1 - 2
services/push/unbind_alias.go

@@ -38,7 +38,6 @@ func (client *Client) UnbindAliasWithChan(request *UnbindAliasRequest) (<-chan *
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err
@@ -68,10 +67,10 @@ func (client *Client) UnbindAliasWithCallback(request *UnbindAliasRequest, callb
 
 type UnbindAliasRequest struct {
 	*requests.RpcRequest
-	UnbindAll requests.Boolean `position:"Query" name:"UnbindAll"`
 	AliasName string           `position:"Query" name:"AliasName"`
 	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 	DeviceId  string           `position:"Query" name:"DeviceId"`
+	UnbindAll requests.Boolean `position:"Query" name:"UnbindAll"`
 }
 
 type UnbindAliasResponse struct {

+ 0 - 1
services/push/unbind_phone.go

@@ -38,7 +38,6 @@ func (client *Client) UnbindPhoneWithChan(request *UnbindPhoneRequest) (<-chan *
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err

+ 2 - 3
services/push/unbind_tag.go

@@ -38,7 +38,6 @@ func (client *Client) UnbindTagWithChan(request *UnbindTagRequest) (<-chan *Unbi
 		} else {
 			responseChan <- response
 		}
-
 	})
 	if err != nil {
 		errChan <- err
@@ -68,10 +67,10 @@ func (client *Client) UnbindTagWithCallback(request *UnbindTagRequest, callback
 
 type UnbindTagRequest struct {
 	*requests.RpcRequest
-	KeyType   string           `position:"Query" name:"KeyType"`
-	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 	TagName   string           `position:"Query" name:"TagName"`
 	ClientKey string           `position:"Query" name:"ClientKey"`
+	AppKey    requests.Integer `position:"Query" name:"AppKey"`
+	KeyType   string           `position:"Query" name:"KeyType"`
 }
 
 type UnbindTagResponse struct {