github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/youmall/register_callback.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/18456
     9  
    10  type RegisterCallbackRequest struct {
    11  	// 通知回调地址,完整url,示例(http://youmall.tencentcloudapi.com/)
    12  	BackUrl string `name:"BackUrl"`
    13  	// 集团id,通过"指定身份标识获取客户门店列表"接口获取
    14  	CompanyId string `name:"CompanyId"`
    15  	// 是否需要顾客图片,1-需要图片,其它-不需要图片
    16  	NeedFacePic *int64 `name:"NeedFacePic,omitempty"`
    17  	// 区域
    18  	Region string `name:"Region"`
    19  	// 请求时间戳
    20  	Time int64 `name:"Time"`
    21  }
    22  
    23  func (req *RegisterCallbackRequest) Invoke(client github_com_morlay_goqcloud.Client) (*RegisterCallbackResponse, error) {
    24  	resp := &RegisterCallbackResponse{}
    25  	err := client.Request("youmall", "RegisterCallback", "2018-02-28").Do(req, resp)
    26  	return resp, err
    27  }
    28  
    29  type RegisterCallbackResponse struct {
    30  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    31  }