|
|
|
@ -1,13 +1,12 @@ |
|
|
|
|
package com.project.survey.network |
|
|
|
|
|
|
|
|
|
import com.project.survey.logic.bean.HahaReq |
|
|
|
|
import com.project.survey.model.LoginBean |
|
|
|
|
import com.project.survey.model.ProjectBean |
|
|
|
|
import retrofit2.http.Body |
|
|
|
|
import retrofit2.http.Field |
|
|
|
|
import retrofit2.http.FormUrlEncoded |
|
|
|
|
import retrofit2.http.GET |
|
|
|
|
import retrofit2.http.Header |
|
|
|
|
import retrofit2.http.Headers |
|
|
|
|
import retrofit2.http.POST |
|
|
|
|
import retrofit2.http.Query |
|
|
|
|
|
|
|
|
@ -16,7 +15,7 @@ interface Api { |
|
|
|
|
/** |
|
|
|
|
* 登录 |
|
|
|
|
*/ |
|
|
|
|
@GET("/je/personInfo/externalEntry") |
|
|
|
|
@GET("je/personInfo/externalEntry") |
|
|
|
|
suspend fun login( |
|
|
|
|
@Query("account") account: String, |
|
|
|
|
@Query("password") password: String |
|
|
|
@ -25,7 +24,7 @@ interface Api { |
|
|
|
|
/** |
|
|
|
|
* 外部用户获取验证码 |
|
|
|
|
*/ |
|
|
|
|
@GET("/je/personInfo/sendSms") |
|
|
|
|
@GET("je/personInfo/sendSms") |
|
|
|
|
suspend fun fetchExternalPersonSMSCode( |
|
|
|
|
@Query("account") account: String, |
|
|
|
|
@Query("password") password: String |
|
|
|
@ -34,7 +33,7 @@ interface Api { |
|
|
|
|
/** |
|
|
|
|
* 外部用户登录 |
|
|
|
|
*/ |
|
|
|
|
@GET("/je/personInfo/externalEntry") |
|
|
|
|
@GET("je/personInfo/externalEntry") |
|
|
|
|
suspend fun externalPersonLogin( |
|
|
|
|
@Query("account") account: String, |
|
|
|
|
@Query("password") password: String, |
|
|
|
@ -44,7 +43,7 @@ interface Api { |
|
|
|
|
/** |
|
|
|
|
* 获取用户可访问的所有项目的信息 |
|
|
|
|
*/ |
|
|
|
|
@GET("/je/project/getAllProjectIDByAccount") |
|
|
|
|
@GET("je/project/getAllProjectIDByAccount") |
|
|
|
|
suspend fun getAllProjectIDByAccount( |
|
|
|
|
@Query("account") account: String |
|
|
|
|
): HttpResult<List<ProjectBean>> |
|
|
|
@ -69,21 +68,16 @@ interface Api { |
|
|
|
|
/** |
|
|
|
|
* 获取流程审批列表 |
|
|
|
|
*/ |
|
|
|
|
@Headers("usePD:false") |
|
|
|
|
@FormUrlEncoded |
|
|
|
|
@POST("/je/workflow/currentUserTask/getTask") |
|
|
|
|
@POST("je/workflow/currentUserTask/getTask") |
|
|
|
|
suspend fun fetchWorkTask( |
|
|
|
|
@Header("Projectid") projectId: String, |
|
|
|
|
@Field("type") type: String, |
|
|
|
|
@Field("userName") userName: String = "", |
|
|
|
|
// @Field("userName") userName: String = "", |
|
|
|
|
@Field("page") page: Int, |
|
|
|
|
@Field("limit") limit: Int = 30, |
|
|
|
|
): HttpResult<Any> |
|
|
|
|
|
|
|
|
|
@POST("/je/workflow/currentUserTask/getTask") |
|
|
|
|
suspend fun fetchWorkTaskBody( |
|
|
|
|
@Header("Projectid") projectId: String, |
|
|
|
|
@Body requestBody: HahaReq |
|
|
|
|
): HttpResult<Any> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |