chat

package
v0.0.0-...-95bb97b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomerServiceData

type CustomerServiceData struct {
	Url string `json:"url"` // 官方客服链接
}

type CustomerServiceReq

type CustomerServiceReq struct {
	AccessToken string `json:"access_token"` // 必选,
	OpenID      string `json:"open_id"`      // 必选, 用户在当前小程序的 ID,使用 code2session 接口返回的 openid
	Type        string `json:"type"`         // 必选, 来源,抖音传 1128,抖音极速版传 2329
	Scene       string `json:"scene"`        // 必选, 场景值,固定值 1
	OrderID     string `json:"order_id"`     // 可选, 订单号
	ImType      string `json:"im_type"`      // 必选, im类型, "group_buy":酒旅、美食、其他本地服务
}

CustomerServiceReq 客服请求参数

type CustomerServiceResp

type CustomerServiceResp struct {
	Data   *CustomerServiceData `json:"data"`
	ErrNo  int                  `json:"err_no"`
	ErrMsg string               `json:"err_msg"`
	LogId  string               `json:"log_id"`
	AppID  string
}

type SDK

type SDK struct {
	HttpCli   *http.Client
	AppID     string
	IsSandBox bool
}

func (*SDK) CustomerService

func (sdk *SDK) CustomerService(ctx context.Context, req *CustomerServiceReq) (*CustomerServiceResp, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL