Selaa lähdekoodia

由廷诚发起的CLOUDPHOTO SDK自动发布, BUILD_ID=457, 版本号:1.1.5

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 7 vuotta sitten
vanhempi
commit
5043035bc3

+ 5 - 0
ChangeLog.txt

@@ -1,3 +1,8 @@
+2018-03-06 Version: 1.1.5
+1, add GetAlbumsByNames
+2, add ListEvent/CreateEvent/EditEvent/DeleteEvent/GetEvent
+3, add return IdStr for string
+
 2018-02-28 Version: 1.1.3
 1, Add query resource inventory API.
 2, Add query topology API.

+ 105 - 0
services/cloudphoto/create_event.go

@@ -0,0 +1,105 @@
+package cloudphoto
+
+//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"
+)
+
+func (client *Client) CreateEvent(request *CreateEventRequest) (response *CreateEventResponse, err error) {
+	response = CreateCreateEventResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) CreateEventWithChan(request *CreateEventRequest) (<-chan *CreateEventResponse, <-chan error) {
+	responseChan := make(chan *CreateEventResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateEvent(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) CreateEventWithCallback(request *CreateEventRequest, callback func(response *CreateEventResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateEventResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateEvent(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type CreateEventRequest struct {
+	*requests.RpcRequest
+	StoreName        string           `position:"Query" name:"StoreName"`
+	LibraryId        string           `position:"Query" name:"LibraryId"`
+	Title            string           `position:"Query" name:"Title"`
+	StartAt          requests.Integer `position:"Query" name:"StartAt"`
+	EndAt            requests.Integer `position:"Query" name:"EndAt"`
+	Identity         string           `position:"Query" name:"Identity"`
+	WeixinTitle      string           `position:"Query" name:"WeixinTitle"`
+	SplashPhotoId    string           `position:"Query" name:"SplashPhotoId"`
+	BannerPhotoId    string           `position:"Query" name:"BannerPhotoId"`
+	WatermarkPhotoId string           `position:"Query" name:"WatermarkPhotoId"`
+	Remark           string           `position:"Query" name:"Remark"`
+}
+
+type CreateEventResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Action    string `json:"Action" xml:"Action"`
+	Event     Event  `json:"Event" xml:"Event"`
+}
+
+func CreateCreateEventRequest() (request *CreateEventRequest) {
+	request = &CreateEventRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "CreateEvent", "cloudphoto", "openAPI")
+	return
+}
+
+func CreateCreateEventResponse() (response *CreateEventResponse) {
+	response = &CreateEventResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 96 - 0
services/cloudphoto/delete_event.go

@@ -0,0 +1,96 @@
+package cloudphoto
+
+//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"
+)
+
+func (client *Client) DeleteEvent(request *DeleteEventRequest) (response *DeleteEventResponse, err error) {
+	response = CreateDeleteEventResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) DeleteEventWithChan(request *DeleteEventRequest) (<-chan *DeleteEventResponse, <-chan error) {
+	responseChan := make(chan *DeleteEventResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteEvent(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) DeleteEventWithCallback(request *DeleteEventRequest, callback func(response *DeleteEventResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteEventResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteEvent(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type DeleteEventRequest struct {
+	*requests.RpcRequest
+	EventId   requests.Integer `position:"Query" name:"EventId"`
+	StoreName string           `position:"Query" name:"StoreName"`
+	LibraryId string           `position:"Query" name:"LibraryId"`
+}
+
+type DeleteEventResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Action    string `json:"Action" xml:"Action"`
+}
+
+func CreateDeleteEventRequest() (request *DeleteEventRequest) {
+	request = &DeleteEventRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "DeleteEvent", "cloudphoto", "openAPI")
+	return
+}
+
+func CreateDeleteEventResponse() (response *DeleteEventResponse) {
+	response = &DeleteEventResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/cloudphoto/delete_photos.go

@@ -67,9 +67,9 @@ func (client *Client) DeletePhotosWithCallback(request *DeletePhotosRequest, cal
 
 type DeletePhotosRequest struct {
 	*requests.RpcRequest
-	PhotoId   *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 	StoreName string    `position:"Query" name:"StoreName"`
 	LibraryId string    `position:"Query" name:"LibraryId"`
+	PhotoId   *[]string `position:"Query" name:"PhotoId"  type:"Repeated"`
 }
 
 type DeletePhotosResponse struct {

+ 105 - 0
services/cloudphoto/edit_event.go

@@ -0,0 +1,105 @@
+package cloudphoto
+
+//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"
+)
+
+func (client *Client) EditEvent(request *EditEventRequest) (response *EditEventResponse, err error) {
+	response = CreateEditEventResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) EditEventWithChan(request *EditEventRequest) (<-chan *EditEventResponse, <-chan error) {
+	responseChan := make(chan *EditEventResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.EditEvent(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) EditEventWithCallback(request *EditEventRequest, callback func(response *EditEventResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *EditEventResponse
+		var err error
+		defer close(result)
+		response, err = client.EditEvent(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type EditEventRequest struct {
+	*requests.RpcRequest
+	StoreName        string           `position:"Query" name:"StoreName"`
+	LibraryId        string           `position:"Query" name:"LibraryId"`
+	EventId          string           `position:"Query" name:"EventId"`
+	Title            string           `position:"Query" name:"Title"`
+	StartAt          requests.Integer `position:"Query" name:"StartAt"`
+	EndAt            requests.Integer `position:"Query" name:"EndAt"`
+	WeixinTitle      string           `position:"Query" name:"WeixinTitle"`
+	SplashPhotoId    string           `position:"Query" name:"SplashPhotoId"`
+	BannerPhotoId    string           `position:"Query" name:"BannerPhotoId"`
+	WatermarkPhotoId string           `position:"Query" name:"WatermarkPhotoId"`
+	Remark           string           `position:"Query" name:"Remark"`
+}
+
+type EditEventResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Action    string `json:"Action" xml:"Action"`
+	Event     Event  `json:"Event" xml:"Event"`
+}
+
+func CreateEditEventRequest() (request *EditEventRequest) {
+	request = &EditEventRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "EditEvent", "cloudphoto", "openAPI")
+	return
+}
+
+func CreateEditEventResponse() (response *EditEventResponse) {
+	response = &EditEventResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 97 - 0
services/cloudphoto/get_albums_by_names.go

@@ -0,0 +1,97 @@
+package cloudphoto
+
+//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"
+)
+
+func (client *Client) GetAlbumsByNames(request *GetAlbumsByNamesRequest) (response *GetAlbumsByNamesResponse, err error) {
+	response = CreateGetAlbumsByNamesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) GetAlbumsByNamesWithChan(request *GetAlbumsByNamesRequest) (<-chan *GetAlbumsByNamesResponse, <-chan error) {
+	responseChan := make(chan *GetAlbumsByNamesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetAlbumsByNames(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) GetAlbumsByNamesWithCallback(request *GetAlbumsByNamesRequest, callback func(response *GetAlbumsByNamesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetAlbumsByNamesResponse
+		var err error
+		defer close(result)
+		response, err = client.GetAlbumsByNames(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type GetAlbumsByNamesRequest struct {
+	*requests.RpcRequest
+	Name      *[]string `position:"Query" name:"Name"  type:"Repeated"`
+	StoreName string    `position:"Query" name:"StoreName"`
+	LibraryId string    `position:"Query" name:"LibraryId"`
+}
+
+type GetAlbumsByNamesResponse struct {
+	*responses.BaseResponse
+	Code      string  `json:"Code" xml:"Code"`
+	Message   string  `json:"Message" xml:"Message"`
+	RequestId string  `json:"RequestId" xml:"RequestId"`
+	Action    string  `json:"Action" xml:"Action"`
+	Albums    []Album `json:"Albums" xml:"Albums"`
+}
+
+func CreateGetAlbumsByNamesRequest() (request *GetAlbumsByNamesRequest) {
+	request = &GetAlbumsByNamesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetAlbumsByNames", "cloudphoto", "openAPI")
+	return
+}
+
+func CreateGetAlbumsByNamesResponse() (response *GetAlbumsByNamesResponse) {
+	response = &GetAlbumsByNamesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 97 - 0
services/cloudphoto/get_event.go

@@ -0,0 +1,97 @@
+package cloudphoto
+
+//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"
+)
+
+func (client *Client) GetEvent(request *GetEventRequest) (response *GetEventResponse, err error) {
+	response = CreateGetEventResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) GetEventWithChan(request *GetEventRequest) (<-chan *GetEventResponse, <-chan error) {
+	responseChan := make(chan *GetEventResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetEvent(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) GetEventWithCallback(request *GetEventRequest, callback func(response *GetEventResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetEventResponse
+		var err error
+		defer close(result)
+		response, err = client.GetEvent(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type GetEventRequest struct {
+	*requests.RpcRequest
+	EventId   requests.Integer `position:"Query" name:"EventId"`
+	StoreName string           `position:"Query" name:"StoreName"`
+	LibraryId string           `position:"Query" name:"LibraryId"`
+}
+
+type GetEventResponse struct {
+	*responses.BaseResponse
+	Code      string `json:"Code" xml:"Code"`
+	Message   string `json:"Message" xml:"Message"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Action    string `json:"Action" xml:"Action"`
+	Event     Event  `json:"Event" xml:"Event"`
+}
+
+func CreateGetEventRequest() (request *GetEventRequest) {
+	request = &GetEventRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "GetEvent", "cloudphoto", "openAPI")
+	return
+}
+
+func CreateGetEventResponse() (response *GetEventResponse) {
+	response = &GetEventResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 101 - 0
services/cloudphoto/list_events.go

@@ -0,0 +1,101 @@
+package cloudphoto
+
+//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"
+)
+
+func (client *Client) ListEvents(request *ListEventsRequest) (response *ListEventsResponse, err error) {
+	response = CreateListEventsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+func (client *Client) ListEventsWithChan(request *ListEventsRequest) (<-chan *ListEventsResponse, <-chan error) {
+	responseChan := make(chan *ListEventsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListEvents(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+func (client *Client) ListEventsWithCallback(request *ListEventsRequest, callback func(response *ListEventsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListEventsResponse
+		var err error
+		defer close(result)
+		response, err = client.ListEvents(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+type ListEventsRequest struct {
+	*requests.RpcRequest
+	Direction string           `position:"Query" name:"Direction"`
+	Size      requests.Integer `position:"Query" name:"Size"`
+	Cursor    string           `position:"Query" name:"Cursor"`
+	State     string           `position:"Query" name:"State"`
+	StoreName string           `position:"Query" name:"StoreName"`
+}
+
+type ListEventsResponse struct {
+	*responses.BaseResponse
+	Code       string  `json:"Code" xml:"Code"`
+	Message    string  `json:"Message" xml:"Message"`
+	NextCursor string  `json:"NextCursor" xml:"NextCursor"`
+	TotalCount int     `json:"TotalCount" xml:"TotalCount"`
+	RequestId  string  `json:"RequestId" xml:"RequestId"`
+	Action     string  `json:"Action" xml:"Action"`
+	Events     []Event `json:"Events" xml:"Events"`
+}
+
+func CreateListEventsRequest() (request *ListEventsRequest) {
+	request = &ListEventsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("CloudPhoto", "2017-07-11", "ListEvents", "cloudphoto", "openAPI")
+	return
+}
+
+func CreateListEventsResponse() (response *ListEventsResponse) {
+	response = &ListEventsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 6 - 5
services/cloudphoto/struct_album.go

@@ -16,12 +16,13 @@ package cloudphoto
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 type Album struct {
-	Mtime       int    `json:"Mtime" xml:"Mtime"`
-	Ctime       int    `json:"Ctime" xml:"Ctime"`
 	Name        string `json:"Name" xml:"Name"`
-	Id          int    `json:"Id" xml:"Id"`
-	Remark      string `json:"Remark" xml:"Remark"`
-	PhotosCount int    `json:"PhotosCount" xml:"PhotosCount"`
+	IdStr       string `json:"IdStr" xml:"IdStr"`
+	Ctime       int    `json:"Ctime" xml:"Ctime"`
 	State       string `json:"State" xml:"State"`
+	PhotosCount int    `json:"PhotosCount" xml:"PhotosCount"`
+	Mtime       int    `json:"Mtime" xml:"Mtime"`
+	Remark      string `json:"Remark" xml:"Remark"`
+	Id          int    `json:"Id" xml:"Id"`
 	Cover       Cover  `json:"Cover" xml:"Cover"`
 }

+ 20 - 0
services/cloudphoto/struct_albums_in_get_albums_by_names.go

@@ -0,0 +1,20 @@
+package cloudphoto
+
+//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.
+
+type AlbumsInGetAlbumsByNames struct {
+	Album []Album `json:"Album" xml:"Album"`
+}

+ 1 - 1
services/cloudphoto/struct_albums.go → services/cloudphoto/struct_albums_in_list_albums.go

@@ -15,6 +15,6 @@ package cloudphoto
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-type Albums struct {
+type AlbumsInListAlbums struct {
 	Album []Album `json:"Album" xml:"Album"`
 }

+ 1 - 1
services/cloudphoto/struct_bucket.go

@@ -17,7 +17,7 @@ package cloudphoto
 
 type Bucket struct {
 	Name   string `json:"Name" xml:"Name"`
+	Region string `json:"Region" xml:"Region"`
 	State  string `json:"State" xml:"State"`
 	Acl    string `json:"Acl" xml:"Acl"`
-	Region string `json:"Region" xml:"Region"`
 }

+ 7 - 6
services/cloudphoto/struct_cover.go

@@ -16,15 +16,16 @@ package cloudphoto
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 type Cover struct {
-	Mtime   int    `json:"Mtime" xml:"Mtime"`
 	FileId  string `json:"FileId" xml:"FileId"`
-	Ctime   int    `json:"Ctime" xml:"Ctime"`
-	Width   int    `json:"Width" xml:"Width"`
 	IsVideo bool   `json:"IsVideo" xml:"IsVideo"`
-	Id      int    `json:"Id" xml:"Id"`
-	Remark  string `json:"Remark" xml:"Remark"`
-	Md5     string `json:"Md5" xml:"Md5"`
+	IdStr   string `json:"IdStr" xml:"IdStr"`
+	Ctime   int    `json:"Ctime" xml:"Ctime"`
 	State   string `json:"State" xml:"State"`
 	Title   string `json:"Title" xml:"Title"`
+	Remark  string `json:"Remark" xml:"Remark"`
+	Mtime   int    `json:"Mtime" xml:"Mtime"`
+	Md5     string `json:"Md5" xml:"Md5"`
+	Width   int    `json:"Width" xml:"Width"`
+	Id      int    `json:"Id" xml:"Id"`
 	Height  int    `json:"Height" xml:"Height"`
 }

+ 34 - 0
services/cloudphoto/struct_event.go

@@ -0,0 +1,34 @@
+package cloudphoto
+
+//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.
+
+type Event struct {
+	IdStr            string `json:"IdStr" xml:"IdStr"`
+	Ctime            int    `json:"Ctime" xml:"Ctime"`
+	Title            string `json:"Title" xml:"Title"`
+	SplashPhotoId    string `json:"SplashPhotoId" xml:"SplashPhotoId"`
+	Id               int    `json:"Id" xml:"Id"`
+	BannerPhotoId    string `json:"BannerPhotoId" xml:"BannerPhotoId"`
+	WeixinTitle      string `json:"WeixinTitle" xml:"WeixinTitle"`
+	Identity         string `json:"Identity" xml:"Identity"`
+	State            string `json:"State" xml:"State"`
+	EndAt            int    `json:"EndAt" xml:"EndAt"`
+	Mtime            int    `json:"Mtime" xml:"Mtime"`
+	ViewsCount       int    `json:"ViewsCount" xml:"ViewsCount"`
+	LibraryId        string `json:"LibraryId" xml:"LibraryId"`
+	WatermarkPhotoId string `json:"WatermarkPhotoId" xml:"WatermarkPhotoId"`
+	StartAt          int    `json:"StartAt" xml:"StartAt"`
+}

+ 20 - 0
services/cloudphoto/struct_events.go

@@ -0,0 +1,20 @@
+package cloudphoto
+
+//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.
+
+type Events struct {
+	Event []Event `json:"Event" xml:"Event"`
+}

+ 6 - 4
services/cloudphoto/struct_face.go

@@ -16,15 +16,17 @@ package cloudphoto
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 type Face struct {
-	Mtime       int      `json:"Mtime" xml:"Mtime"`
-	IsMe        bool     `json:"IsMe" xml:"IsMe"`
-	Ctime       int      `json:"Ctime" xml:"Ctime"`
 	Name        string   `json:"Name" xml:"Name"`
+	FaceIdStr   string   `json:"FaceIdStr" xml:"FaceIdStr"`
+	IdStr       string   `json:"IdStr" xml:"IdStr"`
+	Ctime       int      `json:"Ctime" xml:"Ctime"`
+	IsMe        bool     `json:"IsMe" xml:"IsMe"`
 	FaceId      int      `json:"FaceId" xml:"FaceId"`
 	Id          int      `json:"Id" xml:"Id"`
+	FaceName    string   `json:"FaceName" xml:"FaceName"`
 	State       string   `json:"State" xml:"State"`
 	PhotosCount int      `json:"PhotosCount" xml:"PhotosCount"`
-	FaceName    string   `json:"FaceName" xml:"FaceName"`
+	Mtime       int      `json:"Mtime" xml:"Mtime"`
 	Axis        []string `json:"Axis" xml:"Axis"`
 	Cover       Cover    `json:"Cover" xml:"Cover"`
 }

+ 1 - 0
services/cloudphoto/struct_moment.go

@@ -17,6 +17,7 @@ package cloudphoto
 
 type Moment struct {
 	Id           int    `json:"Id" xml:"Id"`
+	IdStr        string `json:"IdStr" xml:"IdStr"`
 	LocationName string `json:"LocationName" xml:"LocationName"`
 	PhotosCount  int    `json:"PhotosCount" xml:"PhotosCount"`
 	State        string `json:"State" xml:"State"`

+ 13 - 12
services/cloudphoto/struct_photo.go

@@ -17,20 +17,21 @@ package cloudphoto
 
 type Photo struct {
 	FileId          string `json:"FileId" xml:"FileId"`
-	Width           int    `json:"Width" xml:"Width"`
-	State           string `json:"State" xml:"State"`
-	Md5             string `json:"Md5" xml:"Md5"`
-	Title           string `json:"Title" xml:"Title"`
-	Height          int    `json:"Height" xml:"Height"`
-	Mtime           int    `json:"Mtime" xml:"Mtime"`
-	TakenAt         int    `json:"TakenAt" xml:"TakenAt"`
+	IdStr           string `json:"IdStr" xml:"IdStr"`
 	Ctime           int    `json:"Ctime" xml:"Ctime"`
-	Location        string `json:"Location" xml:"Location"`
-	IsVideo         bool   `json:"IsVideo" xml:"IsVideo"`
+	Title           string `json:"Title" xml:"Title"`
+	Remark          string `json:"Remark" xml:"Remark"`
 	Like            int    `json:"Like" xml:"Like"`
 	Id              int    `json:"Id" xml:"Id"`
-	Size            int    `json:"Size" xml:"Size"`
-	Remark          string `json:"Remark" xml:"Remark"`
-	InactiveTime    int    `json:"InactiveTime" xml:"InactiveTime"`
 	ShareExpireTime int    `json:"ShareExpireTime" xml:"ShareExpireTime"`
+	InactiveTime    int    `json:"InactiveTime" xml:"InactiveTime"`
+	Location        string `json:"Location" xml:"Location"`
+	Height          int    `json:"Height" xml:"Height"`
+	IsVideo         bool   `json:"IsVideo" xml:"IsVideo"`
+	State           string `json:"State" xml:"State"`
+	Mtime           int    `json:"Mtime" xml:"Mtime"`
+	Md5             string `json:"Md5" xml:"Md5"`
+	Width           int    `json:"Width" xml:"Width"`
+	Size            int    `json:"Size" xml:"Size"`
+	TakenAt         int    `json:"TakenAt" xml:"TakenAt"`
 }

+ 6 - 5
services/cloudphoto/struct_photo_store.go

@@ -16,14 +16,15 @@ package cloudphoto
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 type PhotoStore struct {
-	Mtime             int      `json:"Mtime" xml:"Mtime"`
-	DefaultQuota      int      `json:"DefaultQuota" xml:"DefaultQuota"`
-	AutoCleanDays     int      `json:"AutoCleanDays" xml:"AutoCleanDays"`
+	Name              string   `json:"Name" xml:"Name"`
+	IdStr             string   `json:"IdStr" xml:"IdStr"`
 	Ctime             int      `json:"Ctime" xml:"Ctime"`
 	AutoCleanEnabled  bool     `json:"AutoCleanEnabled" xml:"AutoCleanEnabled"`
-	Name              string   `json:"Name" xml:"Name"`
-	Id                int      `json:"Id" xml:"Id"`
+	DefaultQuota      int      `json:"DefaultQuota" xml:"DefaultQuota"`
 	Remark            string   `json:"Remark" xml:"Remark"`
+	Mtime             int      `json:"Mtime" xml:"Mtime"`
 	DefaultTrashQuota int      `json:"DefaultTrashQuota" xml:"DefaultTrashQuota"`
+	Id                int      `json:"Id" xml:"Id"`
+	AutoCleanDays     int      `json:"AutoCleanDays" xml:"AutoCleanDays"`
 	Buckets           []Bucket `json:"Buckets" xml:"Buckets"`
 }

+ 5 - 5
services/cloudphoto/struct_quota.go

@@ -16,12 +16,12 @@ package cloudphoto
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 type Quota struct {
-	InactiveSize    int `json:"InactiveSize" xml:"InactiveSize"`
-	TotalQuota      int `json:"TotalQuota" xml:"TotalQuota"`
-	ActiveSize      int `json:"ActiveSize" xml:"ActiveSize"`
-	VideosCount     int `json:"VideosCount" xml:"VideosCount"`
 	TotalTrashQuota int `json:"TotalTrashQuota" xml:"TotalTrashQuota"`
+	ActiveSize      int `json:"ActiveSize" xml:"ActiveSize"`
+	UsedQuota       int `json:"UsedQuota" xml:"UsedQuota"`
+	InactiveSize    int `json:"InactiveSize" xml:"InactiveSize"`
 	PhotosCount     int `json:"PhotosCount" xml:"PhotosCount"`
 	FacesCount      int `json:"FacesCount" xml:"FacesCount"`
-	UsedQuota       int `json:"UsedQuota" xml:"UsedQuota"`
+	VideosCount     int `json:"VideosCount" xml:"VideosCount"`
+	TotalQuota      int `json:"TotalQuota" xml:"TotalQuota"`
 }

+ 6 - 4
services/cloudphoto/struct_result.go

@@ -17,12 +17,14 @@ package cloudphoto
 
 type Result struct {
 	AccessUrl      string `json:"AccessUrl" xml:"AccessUrl"`
+	FramedPhotoUrl string `json:"FramedPhotoUrl" xml:"FramedPhotoUrl"`
+	IdStr          string `json:"IdStr" xml:"IdStr"`
 	Message        string `json:"Message" xml:"Message"`
-	ThumbnailUrl   string `json:"ThumbnailUrl" xml:"ThumbnailUrl"`
-	Id             int    `json:"Id" xml:"Id"`
-	PhotoId        int    `json:"PhotoId" xml:"PhotoId"`
+	PhotoIdStr     string `json:"PhotoIdStr" xml:"PhotoIdStr"`
 	State          string `json:"State" xml:"State"`
 	Code           string `json:"Code" xml:"Code"`
+	Id             int    `json:"Id" xml:"Id"`
+	ThumbnailUrl   string `json:"ThumbnailUrl" xml:"ThumbnailUrl"`
 	DownloadUrl    string `json:"DownloadUrl" xml:"DownloadUrl"`
-	FramedPhotoUrl string `json:"FramedPhotoUrl" xml:"FramedPhotoUrl"`
+	PhotoId        int    `json:"PhotoId" xml:"PhotoId"`
 }

+ 3 - 2
services/cloudphoto/struct_tag.go

@@ -16,9 +16,10 @@ package cloudphoto
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 type Tag struct {
-	IsSubTag  bool   `json:"IsSubTag" xml:"IsSubTag"`
-	ParentTag string `json:"ParentTag" xml:"ParentTag"`
 	Name      string `json:"Name" xml:"Name"`
+	ParentTag string `json:"ParentTag" xml:"ParentTag"`
+	IdStr     string `json:"IdStr" xml:"IdStr"`
 	Id        int    `json:"Id" xml:"Id"`
+	IsSubTag  bool   `json:"IsSubTag" xml:"IsSubTag"`
 	Cover     Cover  `json:"Cover" xml:"Cover"`
 }