Skip to content

Commit

Permalink
feat: ✨ 企业微信-客户联系-获客助手
Browse files Browse the repository at this point in the history
  • Loading branch information
Lumiaqian committed Aug 8, 2023
1 parent 22be4a9 commit e95b0f8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions work/externalcontact/customer_acquisition.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,6 @@ func (r *Client) GetCustomerInfoWithCustomerAcquisitionLink(req *GetCustomerInfo
}

type (
// CustomerAcquisitionQuotaRequest 查询剩余使用量请求
CustomerAcquisitionQuotaRequest struct {
LinkID string `json:"link_id"`
}
// CustomerAcquisitionQuotaResponse 查询剩余使用量响应
CustomerAcquisitionQuotaResponse struct {
util.CommonError
Expand All @@ -274,7 +270,7 @@ type (

// CustomerAcquisitionQuota 获客助手额度管理与使用统计--查询剩余使用量
// see https://developer.work.weixin.qq.com/document/path/97299
func (r *Client) CustomerAcquisitionQuota(req *CustomerAcquisitionQuotaRequest) (*CustomerAcquisitionQuotaResponse, error) {
func (r *Client) CustomerAcquisitionQuota() (*CustomerAcquisitionQuotaResponse, error) {
var (
accessToken string
err error
Expand All @@ -283,7 +279,7 @@ func (r *Client) CustomerAcquisitionQuota(req *CustomerAcquisitionQuotaRequest)
return nil, err
}
var response []byte
if response, err = util.PostJSON(fmt.Sprintf(customerAcquisitionQuotaURL, accessToken), req); err != nil {
if response, err = util.HTTPGet((fmt.Sprintf(customerAcquisitionQuotaURL, accessToken))); err != nil {
return nil, err
}
result := &CustomerAcquisitionQuotaResponse{}
Expand Down

0 comments on commit e95b0f8

Please sign in to comment.