WechatService.java 883 B

123456789101112131415161718192021222324252627
  1. package com.hz.employmentsite.services.service;
  2. import com.hz.employmentsite.model.WxMessagetempsetting;
  3. import com.hz.employmentsite.model.WxMessagetempsettingField;
  4. import me.chanjar.weixin.common.error.WxErrorException;
  5. import java.io.UnsupportedEncodingException;
  6. import java.util.List;
  7. import java.util.Map;
  8. public interface WechatService {
  9. String getOAuthUrl(String redirectUrl);
  10. String getOpenId(String code) throws WxErrorException;
  11. boolean sendMsg(String openId, String sourceId, String url, String templateId, Map<String, String> sendData) throws Exception;
  12. List<WxMessagetempsetting> getWxMessagetempsettingList();
  13. List<WxMessagetempsettingField> getWxMessagetempFieldList(String templateNo);
  14. String getQrcodeUrl(String url, String userId) throws UnsupportedEncodingException;
  15. Boolean qrcodeVerify(String qrCodeId, String openId);
  16. }