WechatCustomerService.java 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 java.util.List;
  6. public interface WechatCustomerService {
  7. /**
  8. * 配置微信客服回调信息
  9. *
  10. * @param msgSignature
  11. * @param timestamp 时间戳
  12. * @param nonce
  13. * @param echoStr 加密后的参数
  14. * @return 校验参数
  15. */
  16. String customerCallback(String msgSignature, String timestamp, String nonce, String echoStr);
  17. /**
  18. * 回调事件
  19. *
  20. * @param wechatEncrypt
  21. */
  22. void callbackSendMsgOnEvent(String wechatEncrypt) throws JsonProcessingException;
  23. /**
  24. * 获取全部客服账号
  25. *
  26. * @return 客服列表
  27. */
  28. List<CustomerListResponse.AccountListDTO> list();
  29. /**
  30. * 获取链接
  31. *
  32. * @return 跳转链接
  33. */
  34. String addContactWay(String openKfId);
  35. }