|
@@ -4,9 +4,7 @@ import com.qmth.boot.core.retrofit.annotatioin.RetrofitClient;
|
|
import com.qmth.ops.biz.wxapp.dto.AccessTokenResult;
|
|
import com.qmth.ops.biz.wxapp.dto.AccessTokenResult;
|
|
import com.qmth.ops.biz.wxapp.dto.Code2SessionResult;
|
|
import com.qmth.ops.biz.wxapp.dto.Code2SessionResult;
|
|
import com.qmth.ops.biz.wxapp.dto.GetPhoneNumberResult;
|
|
import com.qmth.ops.biz.wxapp.dto.GetPhoneNumberResult;
|
|
-import retrofit2.http.GET;
|
|
|
|
-import retrofit2.http.POST;
|
|
|
|
-import retrofit2.http.Query;
|
|
|
|
|
|
+import retrofit2.http.*;
|
|
|
|
|
|
@RetrofitClient(baseUrl = "https://api.weixin.qq.com/")
|
|
@RetrofitClient(baseUrl = "https://api.weixin.qq.com/")
|
|
public interface WxappApiClient {
|
|
public interface WxappApiClient {
|
|
@@ -19,6 +17,7 @@ public interface WxappApiClient {
|
|
Code2SessionResult code2session(@Query("appid") String appId, @Query("secret") String secret,
|
|
Code2SessionResult code2session(@Query("appid") String appId, @Query("secret") String secret,
|
|
@Query("js_code") String code, @Query("grant_type") String grantType);
|
|
@Query("js_code") String code, @Query("grant_type") String grantType);
|
|
|
|
|
|
|
|
+ @FormUrlEncoded
|
|
@POST("wxa/business/getuserphonenumber")
|
|
@POST("wxa/business/getuserphonenumber")
|
|
- GetPhoneNumberResult getPhoneNumber(@Query("access_token") String accessToken, @Query("code") String code);
|
|
|
|
|
|
+ GetPhoneNumberResult getPhoneNumber(@Field("access_token") String accessToken, @Field("code") String code);
|
|
}
|
|
}
|