|
@@ -2,10 +2,7 @@ package com.qmth.boot.core.solar.api;
|
|
|
|
|
|
import com.qmth.boot.core.retrofit.annotatioin.RetrofitClient;
|
|
|
import com.qmth.boot.core.solar.config.SolarApiConfiguration;
|
|
|
-import com.qmth.boot.core.solar.model.AppInfo;
|
|
|
-import com.qmth.boot.core.solar.model.OrgInfo;
|
|
|
-import com.qmth.boot.core.solar.model.WxappAccessToken;
|
|
|
-import com.qmth.boot.core.solar.model.WxappSession;
|
|
|
+import com.qmth.boot.core.solar.model.*;
|
|
|
import retrofit2.http.POST;
|
|
|
import retrofit2.http.Query;
|
|
|
|
|
@@ -50,4 +47,14 @@ public interface SolarApiClient {
|
|
|
*/
|
|
|
@POST("wxapp/session_by_code")
|
|
|
WxappSession getWxappSessionByCode(@Query("appId") String appId, @Query("code") String code);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 通过appId及手机号快速验证code获取真实手机号
|
|
|
+ *
|
|
|
+ * @param appId
|
|
|
+ * @param code
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @POST("wxapp/get_phone_number")
|
|
|
+ WxappPhoneNumber getWxappPhoneNumber(@Query("appId") String appId, @Query("code") String code);
|
|
|
}
|