Browse Source

Supported API MassPush for Push Message or Notice.

sdk-team 6 years ago
parent
commit
552d359b63

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-10-08 Version: 1.60.184
+- Supported API MassPush for Push Message or Notice.
+
 2019-10-08 Version: 1.60.183
 2019-10-08 Version: 1.60.183
 - Generated 2016-01-20 for `Kms`.
 - Generated 2016-01-20 for `Kms`.
 
 

+ 2 - 2
services/push/bind_alias.go

@@ -76,9 +76,9 @@ func (client *Client) BindAliasWithCallback(request *BindAliasRequest, callback
 // BindAliasRequest is the request struct for api BindAlias
 // BindAliasRequest is the request struct for api BindAlias
 type BindAliasRequest struct {
 type BindAliasRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
+	DeviceId  string           `position:"Query" name:"DeviceId"`
 	AliasName string           `position:"Query" name:"AliasName"`
 	AliasName string           `position:"Query" name:"AliasName"`
 	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 	AppKey    requests.Integer `position:"Query" name:"AppKey"`
-	DeviceId  string           `position:"Query" name:"DeviceId"`
 }
 }
 
 
 // BindAliasResponse is the response struct for api BindAlias
 // BindAliasResponse is the response struct for api BindAlias
@@ -92,7 +92,7 @@ func CreateBindAliasRequest() (request *BindAliasRequest) {
 	request = &BindAliasRequest{
 	request = &BindAliasRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "BindAlias", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "BindAlias", "", "")
 	return
 	return
 }
 }
 
 

+ 2 - 2
services/push/bind_phone.go

@@ -77,8 +77,8 @@ func (client *Client) BindPhoneWithCallback(request *BindPhoneRequest, callback
 type BindPhoneRequest struct {
 type BindPhoneRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
 	PhoneNumber string           `position:"Query" name:"PhoneNumber"`
 	PhoneNumber string           `position:"Query" name:"PhoneNumber"`
-	AppKey      requests.Integer `position:"Query" name:"AppKey"`
 	DeviceId    string           `position:"Query" name:"DeviceId"`
 	DeviceId    string           `position:"Query" name:"DeviceId"`
+	AppKey      requests.Integer `position:"Query" name:"AppKey"`
 }
 }
 
 
 // BindPhoneResponse is the response struct for api BindPhone
 // BindPhoneResponse is the response struct for api BindPhone
@@ -92,7 +92,7 @@ func CreateBindPhoneRequest() (request *BindPhoneRequest) {
 	request = &BindPhoneRequest{
 	request = &BindPhoneRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "BindPhone", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "BindPhone", "", "")
 	return
 	return
 }
 }
 
 

+ 2 - 2
services/push/bind_tag.go

@@ -76,10 +76,10 @@ func (client *Client) BindTagWithCallback(request *BindTagRequest, callback func
 // BindTagRequest is the request struct for api BindTag
 // BindTagRequest is the request struct for api BindTag
 type BindTagRequest struct {
 type BindTagRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
+	KeyType   string           `position:"Query" name:"KeyType"`
 	TagName   string           `position:"Query" name:"TagName"`
 	TagName   string           `position:"Query" name:"TagName"`
 	ClientKey string           `position:"Query" name:"ClientKey"`
 	ClientKey string           `position:"Query" name:"ClientKey"`
 	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 	AppKey    requests.Integer `position:"Query" name:"AppKey"`
-	KeyType   string           `position:"Query" name:"KeyType"`
 }
 }
 
 
 // BindTagResponse is the response struct for api BindTag
 // BindTagResponse is the response struct for api BindTag
@@ -93,7 +93,7 @@ func CreateBindTagRequest() (request *BindTagRequest) {
 	request = &BindTagRequest{
 	request = &BindTagRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "BindTag", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "BindTag", "", "")
 	return
 	return
 }
 }
 
 

+ 1 - 1
services/push/cancel_push.go

@@ -91,7 +91,7 @@ func CreateCancelPushRequest() (request *CancelPushRequest) {
 	request = &CancelPushRequest{
 	request = &CancelPushRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "CancelPush", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "CancelPush", "", "")
 	return
 	return
 }
 }
 
 

+ 2 - 2
services/push/check_device.go

@@ -76,8 +76,8 @@ func (client *Client) CheckDeviceWithCallback(request *CheckDeviceRequest, callb
 // CheckDeviceRequest is the request struct for api CheckDevice
 // CheckDeviceRequest is the request struct for api CheckDevice
 type CheckDeviceRequest struct {
 type CheckDeviceRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	AppKey   requests.Integer `position:"Query" name:"AppKey"`
 	DeviceId string           `position:"Query" name:"DeviceId"`
 	DeviceId string           `position:"Query" name:"DeviceId"`
+	AppKey   requests.Integer `position:"Query" name:"AppKey"`
 }
 }
 
 
 // CheckDeviceResponse is the response struct for api CheckDevice
 // CheckDeviceResponse is the response struct for api CheckDevice
@@ -92,7 +92,7 @@ func CreateCheckDeviceRequest() (request *CheckDeviceRequest) {
 	request = &CheckDeviceRequest{
 	request = &CheckDeviceRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "CheckDevice", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "CheckDevice", "", "")
 	return
 	return
 }
 }
 
 

+ 1 - 1
services/push/check_devices.go

@@ -92,7 +92,7 @@ func CreateCheckDevicesRequest() (request *CheckDevicesRequest) {
 	request = &CheckDevicesRequest{
 	request = &CheckDevicesRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "CheckDevices", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "CheckDevices", "", "")
 	return
 	return
 }
 }
 
 

+ 3 - 3
services/push/list_push_records.go

@@ -76,10 +76,10 @@ func (client *Client) ListPushRecordsWithCallback(request *ListPushRecordsReques
 // ListPushRecordsRequest is the request struct for api ListPushRecords
 // ListPushRecordsRequest is the request struct for api ListPushRecords
 type ListPushRecordsRequest struct {
 type ListPushRecordsRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	PageSize  requests.Integer `position:"Query" name:"PageSize"`
 	EndTime   string           `position:"Query" name:"EndTime"`
 	EndTime   string           `position:"Query" name:"EndTime"`
-	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 	StartTime string           `position:"Query" name:"StartTime"`
 	StartTime string           `position:"Query" name:"StartTime"`
+	PageSize  requests.Integer `position:"Query" name:"PageSize"`
+	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 	Page      requests.Integer `position:"Query" name:"Page"`
 	Page      requests.Integer `position:"Query" name:"Page"`
 	PushType  string           `position:"Query" name:"PushType"`
 	PushType  string           `position:"Query" name:"PushType"`
 }
 }
@@ -99,7 +99,7 @@ func CreateListPushRecordsRequest() (request *ListPushRecordsRequest) {
 	request = &ListPushRecordsRequest{
 	request = &ListPushRecordsRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "ListPushRecords", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "ListPushRecords", "", "")
 	return
 	return
 }
 }
 
 

+ 1 - 1
services/push/list_summary_apps.go

@@ -90,7 +90,7 @@ func CreateListSummaryAppsRequest() (request *ListSummaryAppsRequest) {
 	request = &ListSummaryAppsRequest{
 	request = &ListSummaryAppsRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "ListSummaryApps", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "ListSummaryApps", "", "")
 	return
 	return
 }
 }
 
 

+ 1 - 1
services/push/list_tags.go

@@ -91,7 +91,7 @@ func CreateListTagsRequest() (request *ListTagsRequest) {
 	request = &ListTagsRequest{
 	request = &ListTagsRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "ListTags", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "ListTags", "", "")
 	return
 	return
 }
 }
 
 

+ 147 - 0
services/push/mass_push.go

@@ -0,0 +1,147 @@
+package push
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// MassPush invokes the push.MassPush API synchronously
+// api document: https://help.aliyun.com/api/push/masspush.html
+func (client *Client) MassPush(request *MassPushRequest) (response *MassPushResponse, err error) {
+	response = CreateMassPushResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// MassPushWithChan invokes the push.MassPush API asynchronously
+// api document: https://help.aliyun.com/api/push/masspush.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) MassPushWithChan(request *MassPushRequest) (<-chan *MassPushResponse, <-chan error) {
+	responseChan := make(chan *MassPushResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.MassPush(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// MassPushWithCallback invokes the push.MassPush API asynchronously
+// api document: https://help.aliyun.com/api/push/masspush.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) MassPushWithCallback(request *MassPushRequest, callback func(response *MassPushResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *MassPushResponse
+		var err error
+		defer close(result)
+		response, err = client.MassPush(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// MassPushRequest is the request struct for api MassPush
+type MassPushRequest struct {
+	*requests.RpcRequest
+	PushTask *[]MassPushPushTask `position:"Query" name:"PushTask"  type:"Repeated"`
+	AppKey   requests.Integer    `position:"Query" name:"AppKey"`
+}
+
+// MassPushPushTask is a repeated param struct in MassPushRequest
+type MassPushPushTask struct {
+	AndroidNotificationBarType     string `name:"AndroidNotificationBarType"`
+	AndroidExtParameters           string `name:"AndroidExtParameters"`
+	IOSBadge                       string `name:"iOSBadge"`
+	IOSBadgeAutoIncrement          string `name:"iOSBadgeAutoIncrement"`
+	AndroidOpenType                string `name:"AndroidOpenType"`
+	Title                          string `name:"Title"`
+	Body                           string `name:"Body"`
+	DeviceType                     string `name:"DeviceType"`
+	PushTime                       string `name:"PushTime"`
+	SendSpeed                      string `name:"SendSpeed"`
+	AndroidPopupActivity           string `name:"AndroidPopupActivity"`
+	IOSRemindBody                  string `name:"iOSRemindBody"`
+	IOSExtParameters               string `name:"iOSExtParameters"`
+	AndroidNotifyType              string `name:"AndroidNotifyType"`
+	AndroidPopupTitle              string `name:"AndroidPopupTitle"`
+	IOSMusic                       string `name:"iOSMusic"`
+	IOSApnsEnv                     string `name:"iOSApnsEnv"`
+	IOSMutableContent              string `name:"iOSMutableContent"`
+	AndroidNotificationBarPriority string `name:"AndroidNotificationBarPriority"`
+	ExpireTime                     string `name:"ExpireTime"`
+	AndroidPopupBody               string `name:"AndroidPopupBody"`
+	IOSNotificationCategory        string `name:"iOSNotificationCategory"`
+	StoreOffline                   string `name:"StoreOffline"`
+	IOSSilentNotification          string `name:"iOSSilentNotification"`
+	JobKey                         string `name:"JobKey"`
+	Target                         string `name:"Target"`
+	AndroidOpenUrl                 string `name:"AndroidOpenUrl"`
+	AndroidNotificationChannel     string `name:"AndroidNotificationChannel"`
+	AndroidRemind                  string `name:"AndroidRemind"`
+	AndroidActivity                string `name:"AndroidActivity"`
+	AndroidXiaoMiNotifyBody        string `name:"AndroidXiaoMiNotifyBody"`
+	IOSSubtitle                    string `name:"iOSSubtitle"`
+	IOSRemind                      string `name:"iOSRemind"`
+	TargetValue                    string `name:"TargetValue"`
+	AndroidMusic                   string `name:"AndroidMusic"`
+	AndroidXiaoMiActivity          string `name:"AndroidXiaoMiActivity"`
+	AndroidXiaoMiNotifyTitle       string `name:"AndroidXiaoMiNotifyTitle"`
+	PushType                       string `name:"PushType"`
+}
+
+// MassPushResponse is the response struct for api MassPush
+type MassPushResponse struct {
+	*responses.BaseResponse
+	RequestId  string     `json:"RequestId" xml:"RequestId"`
+	MessageIds MessageIds `json:"MessageIds" xml:"MessageIds"`
+}
+
+// CreateMassPushRequest creates a request to invoke MassPush API
+func CreateMassPushRequest() (request *MassPushRequest) {
+	request = &MassPushRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Push", "2016-08-01", "MassPush", "", "")
+	return
+}
+
+// CreateMassPushResponse creates a response to parse from MassPush response
+func CreateMassPushResponse() (response *MassPushResponse) {
+	response = &MassPushResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 17 - 17
services/push/push.go

@@ -78,19 +78,12 @@ type PushRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
 	AndroidNotificationBarType     requests.Integer `position:"Query" name:"AndroidNotificationBarType"`
 	AndroidNotificationBarType     requests.Integer `position:"Query" name:"AndroidNotificationBarType"`
 	SmsSendPolicy                  requests.Integer `position:"Query" name:"SmsSendPolicy"`
 	SmsSendPolicy                  requests.Integer `position:"Query" name:"SmsSendPolicy"`
-	AndroidExtParameters           string           `position:"Query" name:"AndroidExtParameters"`
-	IOSBadge                       requests.Integer `position:"Query" name:"iOSBadge"`
-	IOSBadgeAutoIncrement          requests.Boolean `position:"Query" name:"iOSBadgeAutoIncrement"`
-	AndroidOpenType                string           `position:"Query" name:"AndroidOpenType"`
-	Title                          string           `position:"Query" name:"Title"`
 	Body                           string           `position:"Query" name:"Body"`
 	Body                           string           `position:"Query" name:"Body"`
 	DeviceType                     string           `position:"Query" name:"DeviceType"`
 	DeviceType                     string           `position:"Query" name:"DeviceType"`
 	PushTime                       string           `position:"Query" name:"PushTime"`
 	PushTime                       string           `position:"Query" name:"PushTime"`
-	SmsDelaySecs                   requests.Integer `position:"Query" name:"SmsDelaySecs"`
 	SendSpeed                      requests.Integer `position:"Query" name:"SendSpeed"`
 	SendSpeed                      requests.Integer `position:"Query" name:"SendSpeed"`
 	AndroidPopupActivity           string           `position:"Query" name:"AndroidPopupActivity"`
 	AndroidPopupActivity           string           `position:"Query" name:"AndroidPopupActivity"`
 	IOSRemindBody                  string           `position:"Query" name:"iOSRemindBody"`
 	IOSRemindBody                  string           `position:"Query" name:"iOSRemindBody"`
-	IOSExtParameters               string           `position:"Query" name:"iOSExtParameters"`
 	AndroidNotifyType              string           `position:"Query" name:"AndroidNotifyType"`
 	AndroidNotifyType              string           `position:"Query" name:"AndroidNotifyType"`
 	AndroidPopupTitle              string           `position:"Query" name:"AndroidPopupTitle"`
 	AndroidPopupTitle              string           `position:"Query" name:"AndroidPopupTitle"`
 	IOSMusic                       string           `position:"Query" name:"iOSMusic"`
 	IOSMusic                       string           `position:"Query" name:"iOSMusic"`
@@ -98,28 +91,35 @@ type PushRequest struct {
 	IOSMutableContent              requests.Boolean `position:"Query" name:"iOSMutableContent"`
 	IOSMutableContent              requests.Boolean `position:"Query" name:"iOSMutableContent"`
 	AndroidNotificationBarPriority requests.Integer `position:"Query" name:"AndroidNotificationBarPriority"`
 	AndroidNotificationBarPriority requests.Integer `position:"Query" name:"AndroidNotificationBarPriority"`
 	ExpireTime                     string           `position:"Query" name:"ExpireTime"`
 	ExpireTime                     string           `position:"Query" name:"ExpireTime"`
-	SmsTemplateName                string           `position:"Query" name:"SmsTemplateName"`
-	AndroidPopupBody               string           `position:"Query" name:"AndroidPopupBody"`
 	IOSNotificationCategory        string           `position:"Query" name:"iOSNotificationCategory"`
 	IOSNotificationCategory        string           `position:"Query" name:"iOSNotificationCategory"`
 	StoreOffline                   requests.Boolean `position:"Query" name:"StoreOffline"`
 	StoreOffline                   requests.Boolean `position:"Query" name:"StoreOffline"`
-	IOSSilentNotification          requests.Boolean `position:"Query" name:"iOSSilentNotification"`
 	SmsParams                      string           `position:"Query" name:"SmsParams"`
 	SmsParams                      string           `position:"Query" name:"SmsParams"`
 	JobKey                         string           `position:"Query" name:"JobKey"`
 	JobKey                         string           `position:"Query" name:"JobKey"`
-	Target                         string           `position:"Query" name:"Target"`
 	AndroidOpenUrl                 string           `position:"Query" name:"AndroidOpenUrl"`
 	AndroidOpenUrl                 string           `position:"Query" name:"AndroidOpenUrl"`
+	AndroidXiaoMiNotifyBody        string           `position:"Query" name:"AndroidXiaoMiNotifyBody"`
+	IOSSubtitle                    string           `position:"Query" name:"iOSSubtitle"`
+	IOSRemind                      requests.Boolean `position:"Query" name:"iOSRemind"`
+	AndroidMusic                   string           `position:"Query" name:"AndroidMusic"`
+	PushType                       string           `position:"Query" name:"PushType"`
+	AndroidExtParameters           string           `position:"Query" name:"AndroidExtParameters"`
+	IOSBadge                       requests.Integer `position:"Query" name:"iOSBadge"`
+	IOSBadgeAutoIncrement          requests.Boolean `position:"Query" name:"iOSBadgeAutoIncrement"`
+	AndroidOpenType                string           `position:"Query" name:"AndroidOpenType"`
+	Title                          string           `position:"Query" name:"Title"`
+	SmsDelaySecs                   requests.Integer `position:"Query" name:"SmsDelaySecs"`
+	IOSExtParameters               string           `position:"Query" name:"iOSExtParameters"`
+	SmsTemplateName                string           `position:"Query" name:"SmsTemplateName"`
+	AndroidPopupBody               string           `position:"Query" name:"AndroidPopupBody"`
+	IOSSilentNotification          requests.Boolean `position:"Query" name:"iOSSilentNotification"`
+	Target                         string           `position:"Query" name:"Target"`
 	AndroidNotificationChannel     string           `position:"Query" name:"AndroidNotificationChannel"`
 	AndroidNotificationChannel     string           `position:"Query" name:"AndroidNotificationChannel"`
 	AndroidRemind                  requests.Boolean `position:"Query" name:"AndroidRemind"`
 	AndroidRemind                  requests.Boolean `position:"Query" name:"AndroidRemind"`
 	AndroidActivity                string           `position:"Query" name:"AndroidActivity"`
 	AndroidActivity                string           `position:"Query" name:"AndroidActivity"`
-	AndroidXiaoMiNotifyBody        string           `position:"Query" name:"AndroidXiaoMiNotifyBody"`
-	IOSSubtitle                    string           `position:"Query" name:"iOSSubtitle"`
 	SmsSignName                    string           `position:"Query" name:"SmsSignName"`
 	SmsSignName                    string           `position:"Query" name:"SmsSignName"`
-	IOSRemind                      requests.Boolean `position:"Query" name:"iOSRemind"`
 	AppKey                         requests.Integer `position:"Query" name:"AppKey"`
 	AppKey                         requests.Integer `position:"Query" name:"AppKey"`
 	TargetValue                    string           `position:"Query" name:"TargetValue"`
 	TargetValue                    string           `position:"Query" name:"TargetValue"`
-	AndroidMusic                   string           `position:"Query" name:"AndroidMusic"`
 	AndroidXiaoMiActivity          string           `position:"Query" name:"AndroidXiaoMiActivity"`
 	AndroidXiaoMiActivity          string           `position:"Query" name:"AndroidXiaoMiActivity"`
 	AndroidXiaoMiNotifyTitle       string           `position:"Query" name:"AndroidXiaoMiNotifyTitle"`
 	AndroidXiaoMiNotifyTitle       string           `position:"Query" name:"AndroidXiaoMiNotifyTitle"`
-	PushType                       string           `position:"Query" name:"PushType"`
 }
 }
 
 
 // PushResponse is the response struct for api Push
 // PushResponse is the response struct for api Push
@@ -134,7 +134,7 @@ func CreatePushRequest() (request *PushRequest) {
 	request = &PushRequest{
 	request = &PushRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "Push", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "Push", "", "")
 	return
 	return
 }
 }
 
 

+ 3 - 3
services/push/push_message_to_android_.go → services/push/push_message_to_android.go

@@ -76,12 +76,12 @@ func (client *Client) PushMessageToAndroidWithCallback(request *PushMessageToAnd
 // PushMessageToAndroidRequest is the request struct for api PushMessageToAndroid
 // PushMessageToAndroidRequest is the request struct for api PushMessageToAndroid
 type PushMessageToAndroidRequest struct {
 type PushMessageToAndroidRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	AppKey      requests.Integer `position:"Query" name:"AppKey"`
-	TargetValue string           `position:"Query" name:"TargetValue"`
 	Title       string           `position:"Query" name:"Title"`
 	Title       string           `position:"Query" name:"Title"`
 	Body        string           `position:"Query" name:"Body"`
 	Body        string           `position:"Query" name:"Body"`
 	JobKey      string           `position:"Query" name:"JobKey"`
 	JobKey      string           `position:"Query" name:"JobKey"`
 	Target      string           `position:"Query" name:"Target"`
 	Target      string           `position:"Query" name:"Target"`
+	AppKey      requests.Integer `position:"Query" name:"AppKey"`
+	TargetValue string           `position:"Query" name:"TargetValue"`
 }
 }
 
 
 // PushMessageToAndroidResponse is the response struct for api PushMessageToAndroid
 // PushMessageToAndroidResponse is the response struct for api PushMessageToAndroid
@@ -96,7 +96,7 @@ func CreatePushMessageToAndroidRequest() (request *PushMessageToAndroidRequest)
 	request = &PushMessageToAndroidRequest{
 	request = &PushMessageToAndroidRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "PushMessageToAndroid", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "PushMessageToAndroid", "", "")
 	return
 	return
 }
 }
 
 

+ 3 - 3
services/push/push_message_to_ios_.go → services/push/push_message_toi_os.go

@@ -76,12 +76,12 @@ func (client *Client) PushMessageToiOSWithCallback(request *PushMessageToiOSRequ
 // PushMessageToiOSRequest is the request struct for api PushMessageToiOS
 // PushMessageToiOSRequest is the request struct for api PushMessageToiOS
 type PushMessageToiOSRequest struct {
 type PushMessageToiOSRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	AppKey      requests.Integer `position:"Query" name:"AppKey"`
-	TargetValue string           `position:"Query" name:"TargetValue"`
 	Title       string           `position:"Query" name:"Title"`
 	Title       string           `position:"Query" name:"Title"`
 	Body        string           `position:"Query" name:"Body"`
 	Body        string           `position:"Query" name:"Body"`
 	JobKey      string           `position:"Query" name:"JobKey"`
 	JobKey      string           `position:"Query" name:"JobKey"`
 	Target      string           `position:"Query" name:"Target"`
 	Target      string           `position:"Query" name:"Target"`
+	AppKey      requests.Integer `position:"Query" name:"AppKey"`
+	TargetValue string           `position:"Query" name:"TargetValue"`
 }
 }
 
 
 // PushMessageToiOSResponse is the response struct for api PushMessageToiOS
 // PushMessageToiOSResponse is the response struct for api PushMessageToiOS
@@ -96,7 +96,7 @@ func CreatePushMessageToiOSRequest() (request *PushMessageToiOSRequest) {
 	request = &PushMessageToiOSRequest{
 	request = &PushMessageToiOSRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "PushMessageToiOS", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "PushMessageToiOS", "", "")
 	return
 	return
 }
 }
 
 

+ 3 - 3
services/push/push_notice_to_android_.go → services/push/push_notice_to_android.go

@@ -77,12 +77,12 @@ func (client *Client) PushNoticeToAndroidWithCallback(request *PushNoticeToAndro
 type PushNoticeToAndroidRequest struct {
 type PushNoticeToAndroidRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
 	ExtParameters string           `position:"Query" name:"ExtParameters"`
 	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"`
 	Title         string           `position:"Query" name:"Title"`
 	Body          string           `position:"Query" name:"Body"`
 	Body          string           `position:"Query" name:"Body"`
 	JobKey        string           `position:"Query" name:"JobKey"`
 	JobKey        string           `position:"Query" name:"JobKey"`
 	Target        string           `position:"Query" name:"Target"`
 	Target        string           `position:"Query" name:"Target"`
+	AppKey        requests.Integer `position:"Query" name:"AppKey"`
+	TargetValue   string           `position:"Query" name:"TargetValue"`
 }
 }
 
 
 // PushNoticeToAndroidResponse is the response struct for api PushNoticeToAndroid
 // PushNoticeToAndroidResponse is the response struct for api PushNoticeToAndroid
@@ -97,7 +97,7 @@ func CreatePushNoticeToAndroidRequest() (request *PushNoticeToAndroidRequest) {
 	request = &PushNoticeToAndroidRequest{
 	request = &PushNoticeToAndroidRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "PushNoticeToAndroid", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "PushNoticeToAndroid", "", "")
 	return
 	return
 }
 }
 
 

+ 3 - 3
services/push/push_notice_to_ios_.go → services/push/push_notice_toi_os.go

@@ -78,12 +78,12 @@ type PushNoticeToiOSRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
 	ExtParameters string           `position:"Query" name:"ExtParameters"`
 	ExtParameters string           `position:"Query" name:"ExtParameters"`
 	ApnsEnv       string           `position:"Query" name:"ApnsEnv"`
 	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"`
 	Title         string           `position:"Query" name:"Title"`
 	Body          string           `position:"Query" name:"Body"`
 	Body          string           `position:"Query" name:"Body"`
 	JobKey        string           `position:"Query" name:"JobKey"`
 	JobKey        string           `position:"Query" name:"JobKey"`
 	Target        string           `position:"Query" name:"Target"`
 	Target        string           `position:"Query" name:"Target"`
+	AppKey        requests.Integer `position:"Query" name:"AppKey"`
+	TargetValue   string           `position:"Query" name:"TargetValue"`
 }
 }
 
 
 // PushNoticeToiOSResponse is the response struct for api PushNoticeToiOS
 // PushNoticeToiOSResponse is the response struct for api PushNoticeToiOS
@@ -98,7 +98,7 @@ func CreatePushNoticeToiOSRequest() (request *PushNoticeToiOSRequest) {
 	request = &PushNoticeToiOSRequest{
 	request = &PushNoticeToiOSRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "PushNoticeToiOS", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "PushNoticeToiOS", "", "")
 	return
 	return
 }
 }
 
 

+ 2 - 2
services/push/query_aliases.go

@@ -76,8 +76,8 @@ func (client *Client) QueryAliasesWithCallback(request *QueryAliasesRequest, cal
 // QueryAliasesRequest is the request struct for api QueryAliases
 // QueryAliasesRequest is the request struct for api QueryAliases
 type QueryAliasesRequest struct {
 type QueryAliasesRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	AppKey   requests.Integer `position:"Query" name:"AppKey"`
 	DeviceId string           `position:"Query" name:"DeviceId"`
 	DeviceId string           `position:"Query" name:"DeviceId"`
+	AppKey   requests.Integer `position:"Query" name:"AppKey"`
 }
 }
 
 
 // QueryAliasesResponse is the response struct for api QueryAliases
 // QueryAliasesResponse is the response struct for api QueryAliases
@@ -92,7 +92,7 @@ func CreateQueryAliasesRequest() (request *QueryAliasesRequest) {
 	request = &QueryAliasesRequest{
 	request = &QueryAliasesRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "QueryAliases", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "QueryAliases", "", "")
 	return
 	return
 }
 }
 
 

+ 2 - 2
services/push/query_device_info.go

@@ -76,8 +76,8 @@ func (client *Client) QueryDeviceInfoWithCallback(request *QueryDeviceInfoReques
 // QueryDeviceInfoRequest is the request struct for api QueryDeviceInfo
 // QueryDeviceInfoRequest is the request struct for api QueryDeviceInfo
 type QueryDeviceInfoRequest struct {
 type QueryDeviceInfoRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	AppKey   requests.Integer `position:"Query" name:"AppKey"`
 	DeviceId string           `position:"Query" name:"DeviceId"`
 	DeviceId string           `position:"Query" name:"DeviceId"`
+	AppKey   requests.Integer `position:"Query" name:"AppKey"`
 }
 }
 
 
 // QueryDeviceInfoResponse is the response struct for api QueryDeviceInfo
 // QueryDeviceInfoResponse is the response struct for api QueryDeviceInfo
@@ -92,7 +92,7 @@ func CreateQueryDeviceInfoRequest() (request *QueryDeviceInfoRequest) {
 	request = &QueryDeviceInfoRequest{
 	request = &QueryDeviceInfoRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "QueryDeviceInfo", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "QueryDeviceInfo", "", "")
 	return
 	return
 }
 }
 
 

+ 2 - 2
services/push/query_device_stat.go

@@ -77,9 +77,9 @@ func (client *Client) QueryDeviceStatWithCallback(request *QueryDeviceStatReques
 type QueryDeviceStatRequest struct {
 type QueryDeviceStatRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
 	EndTime    string           `position:"Query" name:"EndTime"`
 	EndTime    string           `position:"Query" name:"EndTime"`
-	AppKey     requests.Integer `position:"Query" name:"AppKey"`
 	StartTime  string           `position:"Query" name:"StartTime"`
 	StartTime  string           `position:"Query" name:"StartTime"`
 	DeviceType string           `position:"Query" name:"DeviceType"`
 	DeviceType string           `position:"Query" name:"DeviceType"`
+	AppKey     requests.Integer `position:"Query" name:"AppKey"`
 	QueryType  string           `position:"Query" name:"QueryType"`
 	QueryType  string           `position:"Query" name:"QueryType"`
 }
 }
 
 
@@ -95,7 +95,7 @@ func CreateQueryDeviceStatRequest() (request *QueryDeviceStatRequest) {
 	request = &QueryDeviceStatRequest{
 	request = &QueryDeviceStatRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "QueryDeviceStat", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "QueryDeviceStat", "", "")
 	return
 	return
 }
 }
 
 

+ 1 - 1
services/push/query_devices_by_account.go

@@ -92,7 +92,7 @@ func CreateQueryDevicesByAccountRequest() (request *QueryDevicesByAccountRequest
 	request = &QueryDevicesByAccountRequest{
 	request = &QueryDevicesByAccountRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "QueryDevicesByAccount", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "QueryDevicesByAccount", "", "")
 	return
 	return
 }
 }
 
 

+ 1 - 1
services/push/query_devices_by_alias.go

@@ -92,7 +92,7 @@ func CreateQueryDevicesByAliasRequest() (request *QueryDevicesByAliasRequest) {
 	request = &QueryDevicesByAliasRequest{
 	request = &QueryDevicesByAliasRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "QueryDevicesByAlias", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "QueryDevicesByAlias", "", "")
 	return
 	return
 }
 }
 
 

+ 3 - 3
services/push/query_push_list.go

@@ -76,10 +76,10 @@ func (client *Client) QueryPushListWithCallback(request *QueryPushListRequest, c
 // QueryPushListRequest is the request struct for api QueryPushList
 // QueryPushListRequest is the request struct for api QueryPushList
 type QueryPushListRequest struct {
 type QueryPushListRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	PageSize  requests.Integer `position:"Query" name:"PageSize"`
 	EndTime   string           `position:"Query" name:"EndTime"`
 	EndTime   string           `position:"Query" name:"EndTime"`
-	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 	StartTime string           `position:"Query" name:"StartTime"`
 	StartTime string           `position:"Query" name:"StartTime"`
+	PageSize  requests.Integer `position:"Query" name:"PageSize"`
+	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 	Page      requests.Integer `position:"Query" name:"Page"`
 	Page      requests.Integer `position:"Query" name:"Page"`
 	PushType  string           `position:"Query" name:"PushType"`
 	PushType  string           `position:"Query" name:"PushType"`
 }
 }
@@ -99,7 +99,7 @@ func CreateQueryPushListRequest() (request *QueryPushListRequest) {
 	request = &QueryPushListRequest{
 	request = &QueryPushListRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "QueryPushList", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "QueryPushList", "", "")
 	return
 	return
 }
 }
 
 

+ 3 - 3
services/push/query_push_stat_by_app.go

@@ -76,10 +76,10 @@ func (client *Client) QueryPushStatByAppWithCallback(request *QueryPushStatByApp
 // QueryPushStatByAppRequest is the request struct for api QueryPushStatByApp
 // QueryPushStatByAppRequest is the request struct for api QueryPushStatByApp
 type QueryPushStatByAppRequest struct {
 type QueryPushStatByAppRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	Granularity string           `position:"Query" name:"Granularity"`
 	EndTime     string           `position:"Query" name:"EndTime"`
 	EndTime     string           `position:"Query" name:"EndTime"`
-	AppKey      requests.Integer `position:"Query" name:"AppKey"`
 	StartTime   string           `position:"Query" name:"StartTime"`
 	StartTime   string           `position:"Query" name:"StartTime"`
+	Granularity string           `position:"Query" name:"Granularity"`
+	AppKey      requests.Integer `position:"Query" name:"AppKey"`
 }
 }
 
 
 // QueryPushStatByAppResponse is the response struct for api QueryPushStatByApp
 // QueryPushStatByAppResponse is the response struct for api QueryPushStatByApp
@@ -94,7 +94,7 @@ func CreateQueryPushStatByAppRequest() (request *QueryPushStatByAppRequest) {
 	request = &QueryPushStatByAppRequest{
 	request = &QueryPushStatByAppRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "QueryPushStatByApp", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "QueryPushStatByApp", "", "")
 	return
 	return
 }
 }
 
 

+ 1 - 1
services/push/query_push_stat_by_msg.go

@@ -92,7 +92,7 @@ func CreateQueryPushStatByMsgRequest() (request *QueryPushStatByMsgRequest) {
 	request = &QueryPushStatByMsgRequest{
 	request = &QueryPushStatByMsgRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "QueryPushStatByMsg", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "QueryPushStatByMsg", "", "")
 	return
 	return
 }
 }
 
 

+ 2 - 2
services/push/query_tags.go

@@ -76,9 +76,9 @@ func (client *Client) QueryTagsWithCallback(request *QueryTagsRequest, callback
 // QueryTagsRequest is the request struct for api QueryTags
 // QueryTagsRequest is the request struct for api QueryTags
 type QueryTagsRequest struct {
 type QueryTagsRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
+	KeyType   string           `position:"Query" name:"KeyType"`
 	ClientKey string           `position:"Query" name:"ClientKey"`
 	ClientKey string           `position:"Query" name:"ClientKey"`
 	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 	AppKey    requests.Integer `position:"Query" name:"AppKey"`
-	KeyType   string           `position:"Query" name:"KeyType"`
 }
 }
 
 
 // QueryTagsResponse is the response struct for api QueryTags
 // QueryTagsResponse is the response struct for api QueryTags
@@ -93,7 +93,7 @@ func CreateQueryTagsRequest() (request *QueryTagsRequest) {
 	request = &QueryTagsRequest{
 	request = &QueryTagsRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "QueryTags", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "QueryTags", "", "")
 	return
 	return
 }
 }
 
 

+ 3 - 3
services/push/query_unique_device_stat.go

@@ -76,10 +76,10 @@ func (client *Client) QueryUniqueDeviceStatWithCallback(request *QueryUniqueDevi
 // QueryUniqueDeviceStatRequest is the request struct for api QueryUniqueDeviceStat
 // QueryUniqueDeviceStatRequest is the request struct for api QueryUniqueDeviceStat
 type QueryUniqueDeviceStatRequest struct {
 type QueryUniqueDeviceStatRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	Granularity string           `position:"Query" name:"Granularity"`
 	EndTime     string           `position:"Query" name:"EndTime"`
 	EndTime     string           `position:"Query" name:"EndTime"`
-	AppKey      requests.Integer `position:"Query" name:"AppKey"`
 	StartTime   string           `position:"Query" name:"StartTime"`
 	StartTime   string           `position:"Query" name:"StartTime"`
+	Granularity string           `position:"Query" name:"Granularity"`
+	AppKey      requests.Integer `position:"Query" name:"AppKey"`
 }
 }
 
 
 // QueryUniqueDeviceStatResponse is the response struct for api QueryUniqueDeviceStat
 // QueryUniqueDeviceStatResponse is the response struct for api QueryUniqueDeviceStat
@@ -94,7 +94,7 @@ func CreateQueryUniqueDeviceStatRequest() (request *QueryUniqueDeviceStatRequest
 	request = &QueryUniqueDeviceStatRequest{
 	request = &QueryUniqueDeviceStatRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "QueryUniqueDeviceStat", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "QueryUniqueDeviceStat", "", "")
 	return
 	return
 }
 }
 
 

+ 1 - 1
services/push/remove_tag.go

@@ -91,7 +91,7 @@ func CreateRemoveTagRequest() (request *RemoveTagRequest) {
 	request = &RemoveTagRequest{
 	request = &RemoveTagRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "RemoveTag", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "RemoveTag", "", "")
 	return
 	return
 }
 }
 
 

+ 21 - 0
services/push/struct_message_ids.go

@@ -0,0 +1,21 @@
+package push
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// MessageIds is a nested struct in push response
+type MessageIds struct {
+	MessageId []string `json:"MessageId" xml:"MessageId"`
+}

+ 2 - 2
services/push/unbind_alias.go

@@ -76,9 +76,9 @@ func (client *Client) UnbindAliasWithCallback(request *UnbindAliasRequest, callb
 // UnbindAliasRequest is the request struct for api UnbindAlias
 // UnbindAliasRequest is the request struct for api UnbindAlias
 type UnbindAliasRequest struct {
 type UnbindAliasRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
+	DeviceId  string           `position:"Query" name:"DeviceId"`
 	AliasName string           `position:"Query" name:"AliasName"`
 	AliasName string           `position:"Query" name:"AliasName"`
 	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 	AppKey    requests.Integer `position:"Query" name:"AppKey"`
-	DeviceId  string           `position:"Query" name:"DeviceId"`
 	UnbindAll requests.Boolean `position:"Query" name:"UnbindAll"`
 	UnbindAll requests.Boolean `position:"Query" name:"UnbindAll"`
 }
 }
 
 
@@ -93,7 +93,7 @@ func CreateUnbindAliasRequest() (request *UnbindAliasRequest) {
 	request = &UnbindAliasRequest{
 	request = &UnbindAliasRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "UnbindAlias", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "UnbindAlias", "", "")
 	return
 	return
 }
 }
 
 

+ 2 - 2
services/push/unbind_phone.go

@@ -76,8 +76,8 @@ func (client *Client) UnbindPhoneWithCallback(request *UnbindPhoneRequest, callb
 // UnbindPhoneRequest is the request struct for api UnbindPhone
 // UnbindPhoneRequest is the request struct for api UnbindPhone
 type UnbindPhoneRequest struct {
 type UnbindPhoneRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
-	AppKey   requests.Integer `position:"Query" name:"AppKey"`
 	DeviceId string           `position:"Query" name:"DeviceId"`
 	DeviceId string           `position:"Query" name:"DeviceId"`
+	AppKey   requests.Integer `position:"Query" name:"AppKey"`
 }
 }
 
 
 // UnbindPhoneResponse is the response struct for api UnbindPhone
 // UnbindPhoneResponse is the response struct for api UnbindPhone
@@ -91,7 +91,7 @@ func CreateUnbindPhoneRequest() (request *UnbindPhoneRequest) {
 	request = &UnbindPhoneRequest{
 	request = &UnbindPhoneRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "UnbindPhone", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "UnbindPhone", "", "")
 	return
 	return
 }
 }
 
 

+ 2 - 2
services/push/unbind_tag.go

@@ -76,10 +76,10 @@ func (client *Client) UnbindTagWithCallback(request *UnbindTagRequest, callback
 // UnbindTagRequest is the request struct for api UnbindTag
 // UnbindTagRequest is the request struct for api UnbindTag
 type UnbindTagRequest struct {
 type UnbindTagRequest struct {
 	*requests.RpcRequest
 	*requests.RpcRequest
+	KeyType   string           `position:"Query" name:"KeyType"`
 	TagName   string           `position:"Query" name:"TagName"`
 	TagName   string           `position:"Query" name:"TagName"`
 	ClientKey string           `position:"Query" name:"ClientKey"`
 	ClientKey string           `position:"Query" name:"ClientKey"`
 	AppKey    requests.Integer `position:"Query" name:"AppKey"`
 	AppKey    requests.Integer `position:"Query" name:"AppKey"`
-	KeyType   string           `position:"Query" name:"KeyType"`
 }
 }
 
 
 // UnbindTagResponse is the response struct for api UnbindTag
 // UnbindTagResponse is the response struct for api UnbindTag
@@ -93,7 +93,7 @@ func CreateUnbindTagRequest() (request *UnbindTagRequest) {
 	request = &UnbindTagRequest{
 	request = &UnbindTagRequest{
 		RpcRequest: &requests.RpcRequest{},
 		RpcRequest: &requests.RpcRequest{},
 	}
 	}
-	request.InitWithApiInfo("Push", "2016-08-01", "UnbindTag", "push", "openAPI")
+	request.InitWithApiInfo("Push", "2016-08-01", "UnbindTag", "", "")
 	return
 	return
 }
 }