服务端如果请求缓存不够怎么处理

2024-12-16 05:40:20
推荐回答(2个)
回答1:

public class BaseModel implements Serializable {
public String code;
public String msg;

public T data;

public boolean success() {
return code.equals("1");
}

@Override
public String toString() {
return "BaseModel{" +
"code='" + code + '\'' +
", msg='" + msg + '\'' +
", data=" + data +
'}';
}
}
Retrofit请求接口的ApiService如下:
public interface ApiService{

@FormUrlEncoded
@POST("/v1/login?c=login&i=memlogin")
Observable> login(
@Field("phone") String phone,
@Field("password") String password);
}

回答2:

会卡