github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/yunjing/describe_usual_login_places.go (about) 1 package yunjing 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 查询常用登录地 8 // https://cloud.tencent.com/document/api/296/19841 9 10 type DescribeUsualLoginPlacesRequest struct { 11 // 区域 12 Region string `name:"Region"` 13 // 云镜客户端UUID 14 Uuid string `name:"Uuid"` 15 } 16 17 func (req *DescribeUsualLoginPlacesRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeUsualLoginPlacesResponse, error) { 18 resp := &DescribeUsualLoginPlacesResponse{} 19 err := client.Request("yunjing", "DescribeUsualLoginPlaces", "2018-02-28").Do(req, resp) 20 return resp, err 21 } 22 23 type DescribeUsualLoginPlacesResponse struct { 24 github_com_morlay_goqcloud.TencentCloudBaseResponse 25 // 常用登录地数组 26 UsualLoginPlaces []*UsualPlace `json:"UsualLoginPlaces"` 27 }