package wxapi type TokenResp struct { Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` AccessToken string `json:"access_token"` ExpiresIn int64 `json:"expires_in"` } type ServiceAccount struct { OpenKfid string `json:"open_kfid"` Name string `json:"name"` Avatar string `json:"avatar"` ManagePrivilege bool `json:"manage_privilege"` } type ServiceListResp struct { Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` AccountList []ServiceAccount `json:"account_list"` } type ServicerAccount struct { Userid string `json:"userid"` Status int64 `json:"status"` DepartmentId int64 `json:"department_id"` } type ServicerListResp struct { Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` ServicerList []ServicerAccount `json:"servicer_list"` } type Staff struct { Userid string `json:"userid"` Name string `json:"name"` Status int64 `json:"status"` MainDepartment int64 `json:"main_department"` } type StaffResp struct { Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` Staff } type Customer struct { ExternalUserid string `json:"external_userid"` Nickname string `json:"nickname"` Avatar string `json:"avatar"` Gender int `json:"gender"` } type CustomerParam struct { ExternalUseridList []string `json:"external_userid_list"` NeedEnterSessionContext int `json:"need_enter_session_context"` } type CustomerListResp struct { Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` CustomerList []Customer `json:"customer_list"` InvalidExternalUserid []string `json:"invalid_external_userid"` } type MsgParam struct { Cursor string `json:"cursor"` Token string `json:"token"` Limit int `json:"limit"` VoiceFormat int `json:"voice_format"` OpenKfid string `json:"open_kfid"` } type Msg struct { Msgid string `json:"msgid"` OpenKfid string `json:"open_kfid"` ExternalUserid string `json:"external_userid"` SendTime float64 `json:"send_time"` Origin float64 `json:"origin"` ServicerUserid string `json:"servicer_userid"` Msgtype string `json:"msgtype"` DataInfo string `json:"data_info"` } type MsgListResp struct { Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` NextCursor string `json:"next_cursor"` HasMore int `json:"has_more"` MsgList []map[string]interface{} `json:"msg_list"` } type UpdateSessionStateParam struct { OpenKfid string `json:"open_kfid"` ExternalUserid string `json:"external_userid"` ServiceState int `json:"service_state"` ServicerUserid string `json:"servicer_userid"` } type UpdateSessionStateResp struct { Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` MsgCode string `json:"msg_code"` } type GetSessionStateParam struct { OpenKfid string `json:"open_kfid"` ExternalUserid string `json:"external_userid"` } type GetSessionStateResp struct { Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` ServiceState int `json:"service_state"` ServicerUserid string `json:"servicer_userid"` }