WechatCustomerService.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package com.ydtech.modules.admin.service;
  2. import com.fasterxml.jackson.core.JsonProcessingException;
  3. import com.ydtech.core.page.BasePageVO;
  4. import com.ydtech.modules.admin.components.wechat.customer.response.CustomerListResponse;
  5. import me.chanjar.weixin.common.error.WxErrorException;
  6. import java.util.List;
  7. public interface WechatCustomerService {
  8. /**
  9. * 配置微信客服回调信息
  10. *
  11. * @param msgSignature
  12. * @param timestamp 时间戳
  13. * @param nonce
  14. * @param echoStr 加密后的参数
  15. * @return 校验参数
  16. */
  17. String customerCallback(String msgSignature, String timestamp, String nonce, String echoStr);
  18. /**
  19. * 回调事件
  20. *
  21. * @param wechatEncrypt
  22. */
  23. void callbackSendMsgOnEvent(String wechatEncrypt) throws JsonProcessingException, WxErrorException;
  24. /**
  25. * 获取全部客服账号
  26. *
  27. * @return 客服列表
  28. */
  29. List<CustomerListResponse.AccountListDTO> list();
  30. /**
  31. * 获取链接
  32. *
  33. * @return 跳转链接
  34. */
  35. String addContactWay(String openKfId);
  36. }