github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/youmall/describe_shop_info.go (about)

     1  package youmall
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 获取客户所属门店列表
     8  // https://cloud.tencent.com/document/api/860/18457
     9  
    10  type DescribeShopInfoRequest struct {
    11  	// Limit:每页的数据项,最大100,超过100会被强制指定为100
    12  	Limit int64 `name:"Limit"`
    13  	// 偏移量:分页控制参数,第一页传0,第n页Offset=(n-1)*Limit
    14  	Offset int64 `name:"Offset"`
    15  	// 区域
    16  	Region string `name:"Region"`
    17  }
    18  
    19  func (req *DescribeShopInfoRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeShopInfoResponse, error) {
    20  	resp := &DescribeShopInfoResponse{}
    21  	err := client.Request("youmall", "DescribeShopInfo", "2018-02-28").Do(req, resp)
    22  	return resp, err
    23  }
    24  
    25  type DescribeShopInfoResponse struct {
    26  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    27  	// 门店列表信息
    28  	ShopInfoSet []*ShopInfo `json:"ShopInfoSet"`
    29  	// 门店总数
    30  	TotalCount int64 `json:"TotalCount"`
    31  }