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

     1  package youmall
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 获取收银台前顾客身份ID
     8  // https://cloud.tencent.com/document/api/860/19900
     9  
    10  type DescribeCameraPersonRequest struct {
    11  	// 摄像头id
    12  	CameraId int64 `name:"CameraId"`
    13  	// 优mall集团id,通过"指定身份标识获取客户门店列表"接口获取
    14  	CompanyId string `name:"CompanyId"`
    15  	// 拉取结束时间戳,单位秒,不超过StartTime+10秒,超过默认为StartTime+10
    16  	EndTime int64 `name:"EndTime"`
    17  	// 是否需要base64的图片,0-不需要,1-需要,默认0
    18  	IsNeedPic *int64 `name:"IsNeedPic,omitempty"`
    19  	// 拉取图片数,默认为1,最大为3
    20  	Num *int64 `name:"Num,omitempty"`
    21  	// pos机id
    22  	PosId *string `name:"PosId,omitempty"`
    23  	// 区域
    24  	Region string `name:"Region"`
    25  	// 优mall店铺id,通过"指定身份标识获取客户门店列表"接口获取
    26  	ShopId int64 `name:"ShopId"`
    27  	// 拉取开始时间戳,单位秒
    28  	StartTime int64 `name:"StartTime"`
    29  }
    30  
    31  func (req *DescribeCameraPersonRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeCameraPersonResponse, error) {
    32  	resp := &DescribeCameraPersonResponse{}
    33  	err := client.Request("youmall", "DescribeCameraPerson", "2018-02-28").Do(req, resp)
    34  	return resp, err
    35  }
    36  
    37  type DescribeCameraPersonResponse struct {
    38  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    39  	// 摄像机id
    40  	CameraId int64 `json:"CameraId"`
    41  	// 集团id
    42  	CompanyId string `json:"CompanyId"`
    43  	// 抓取的顾客信息
    44  	Infos []*CameraPersonInfo `json:"Infos"`
    45  	// pos机id
    46  	PosId string `json:"PosId"`
    47  	// 店铺id
    48  	ShopId int64 `json:"ShopId"`
    49  }