com.firefly.wechat.service.WechatSmallAppService Maven / Gradle / Ivy
package com.firefly.wechat.service;
import com.firefly.wechat.model.app.*;
import com.firefly.wechat.model.template.SmappTemplateMessageRequest;
import com.firefly.wechat.model.template.TemplateMessageResponse;
import java.nio.ByteBuffer;
import java.util.List;
import java.util.concurrent.CompletableFuture;
/**
* The wechat small app service.
*
* @author Pengtao Qiu
*/
public interface WechatSmallAppService {
CompletableFuture getSessionKey(SessionKeyRequest request);
DecryptedUserInfoResponse decryptUserInfo(DecryptedUserInfoRequest request);
boolean verifySignature(String rawData, String sessionKey, String signature);
CompletableFuture> getCodeUnlimit(CodeUnlimitRequest request, String accessToken);
CompletableFuture> getCode(CodeUnlimitRequest request, String accessToken);
CompletableFuture> createQrcode(QrcodeRequest request, String accessToken);
CompletableFuture sendCustomerServiceMessage(CommonMessageRequest request, String accessToken);
CompletableFuture sendTemplateMessage(SmappTemplateMessageRequest request, String accessToken);
}