| | |
| | | |
| | | import com.xw.common.net.interceptor.HttpResponse |
| | | import com.xw.common.net.interceptor.PageResponse |
| | | import com.xw.yunwei.BuildConfig |
| | | import com.xw.yunwei.model.AppPermissionModel |
| | | import com.xw.yunwei.model.AppVersionModel |
| | | import com.xw.yunwei.model.ClockInStatusModel |
| | |
| | | import okhttp3.RequestBody |
| | | import retrofit2.Call |
| | | import retrofit2.http.Body |
| | | import retrofit2.http.Field |
| | | import retrofit2.http.FormUrlEncoded |
| | | import retrofit2.http.GET |
| | | import retrofit2.http.Header |
| | | import retrofit2.http.POST |
| | | import retrofit2.http.Path |
| | | import retrofit2.http.Query |
| | |
| | | @POST("account/maintenance-app/base/v1/verificationCodeLogin") |
| | | fun loginByCode(@Body body: RequestBody): Call<HttpResponse<LoginModel>> |
| | | |
| | | /*通过第三方token登录*/ |
| | | @GET("${BuildConfig.API_HOST}account/maintenance-app/ssoAuthSdk/appLogin") |
| | | fun loginByThirdToken( |
| | | @Query("deviceType") deviceType: Int = 1, |
| | | @Header("Content-Type") contentType: String = "application/json", |
| | | @Header("XT-Client-Type") clientType: String, |
| | | @Header("XT-DeviceId") deviceId: String, |
| | | @Header("XT-Nonce") nonce: String, |
| | | @Header("XT-AppId") appId: String, |
| | | @Header("XT-Signature") sign: String, |
| | | @Header("Authorization") token: String |
| | | ): Call<HttpResponse<LoginModel>> |
| | | |
| | | /*获取手机验证码*/ |
| | | @POST("account/maintenance-app/base/v1/getVerificationCode") |
| | | fun getVerificationCode(@Body body: RequestBody): Call<HttpResponse<Any>> |