46 lines
1.0 KiB
Go
46 lines
1.0 KiB
Go
package wx_work
|
|
|
|
import (
|
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
|
|
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses"
|
|
)
|
|
|
|
type GetVipQrCodeReq struct {
|
|
*requests.RpcRequest
|
|
}
|
|
|
|
type GetVipQrCodeResp struct {
|
|
*responses.BaseResponse
|
|
Code int `json:"status_code"`
|
|
Msg string `json:"status_msg"`
|
|
Data QrCode `json:"data"`
|
|
}
|
|
|
|
type QrCode struct {
|
|
QrCode string `json:"qr_code"`
|
|
Status int `json:"status"`
|
|
FollowUser string `json:"follow_user"`
|
|
}
|
|
|
|
// CreateGetVipQrCodeReq 获取大客户跟进人二维码请求
|
|
func CreateGetVipQrCodeReq(data map[string]string) *GetVipQrCodeReq {
|
|
req := &GetVipQrCodeReq{
|
|
&requests.RpcRequest{},
|
|
}
|
|
|
|
req.InitWithApiInfo(HOST, VERSION, "/v1/vip/qr_code")
|
|
req.Method = requests.POST
|
|
req.FormParams = data
|
|
if req.FormParams == nil {
|
|
req.FormParams = make(map[string]string)
|
|
}
|
|
return req
|
|
}
|
|
|
|
// CreateGetVipQrCodeResp 获取大客户跟进人二维码
|
|
func CreateGetVipQrCodeResp() *GetVipQrCodeResp {
|
|
return &GetVipQrCodeResp{
|
|
BaseResponse: &responses.BaseResponse{},
|
|
}
|
|
}
|