package com.ruoyi.system.rest;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Var;

import java.util.Map;

@BaseRequest(baseURL = "https://api.weixin.qq.com", sslProtocol = "TLS")
public interface WechatService {
    @Get(url = "/sns/jscode2session?appid={APPID}&secret={APP_SECRET}&js_code={code}&grant_type=authorization_code", dataType = "json")
    Map getSession(@Var("APPID") String appid, @Var("APP_SECRET") String appSecret, @Var("code") String code);
}
