18034727885
2026-05-13 03c43bb0d1abe7a22ce76bf903cc3c1e04648e44
app/src/main/java/com/xw/yunwei/net/UserApi.kt
@@ -2,6 +2,7 @@
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
@@ -12,9 +13,8 @@
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
@@ -30,6 +30,19 @@
    @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>>