servicer list3
This commit is contained in:
parent
6c713ac9b9
commit
b24841dadb
|
@ -23,11 +23,11 @@ var (
|
||||||
EventTypeEnterSession = "enter_session"
|
EventTypeEnterSession = "enter_session"
|
||||||
EventTypeSessionChange = "session_status_change"
|
EventTypeSessionChange = "session_status_change"
|
||||||
|
|
||||||
CustomerStateEnterSession = 0
|
CustomerStateEnterSession = 0 //未处理,新会话,用户已发消息
|
||||||
CustomerStateRobot = 1
|
CustomerStateRobot = 1 //由智能助手接待
|
||||||
CustomerStateWaitPool = 2
|
CustomerStateWaitPool = 2 //待接入池排队中
|
||||||
CustomerStateServicing = 3
|
CustomerStateServicing = 3 //由人工接待
|
||||||
CustomerStateComplete = 4
|
CustomerStateComplete = 4 //已结束/未开始
|
||||||
)
|
)
|
||||||
|
|
||||||
type CustomerAccount struct {
|
type CustomerAccount struct {
|
||||||
|
@ -110,7 +110,7 @@ func (a *AppCustomer) AccountList() ([]*CustomerAccount, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *AppCustomer) ServicerList(openKfid string) ([]*CustomerServicer, error) {
|
func (a *AppCustomer) ServicerList(openKfid string) ([]*CustomerServicer, error) {
|
||||||
reqUrl := fmt.Sprintf("https://qyapi.weixin.qq.com/cgi-bin/kf/service_state/trans?access_token=%s&open_kfid=%s", a.GetToken(), openKfid)
|
reqUrl := fmt.Sprintf("https://qyapi.weixin.qq.com/cgi-bin/kf/servicer/list?access_token=%s&open_kfid=%s", a.GetToken(), openKfid)
|
||||||
|
|
||||||
rspBody, err := util.HttpGet(reqUrl, nil)
|
rspBody, err := util.HttpGet(reqUrl, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue