liujingxing / rxhttp

🔥🔥🔥 Based on OkHttp encapsulation, support Kotlin Coroutines、RxJava2、RxJava3; 30s to get started.
https://juejin.im/post/5ded221a518825125d14a1d4
Apache License 2.0
3.74k stars 457 forks source link

自定义parser生成失败 #494

Closed chenww713 closed 3 months ago

chenww713 commented 3 months ago

toObservableHttpResponse()方法生成成功了,但是toObservableHttpResponseList()和toObservableHttpResponsePageList()没有生成 111

chenww713 commented 3 months ago

222

liujingxing commented 3 months ago

rxhttp版本号多少

chenww713 commented 3 months ago

implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation "com.github.liujingxing.rxhttp:rxhttp:3.2.6" annotationProcessor "com.github.liujingxing.rxhttp:rxhttp-compiler:3.2.6" implementation 'io.reactivex.rxjava3:rxjava:3.1.6' implementation 'io.reactivex.rxjava3:rxandroid:3.0.2' implementation 'com.github.liujingxing.rxlife:rxlife-rxjava3:2.2.2'

liujingxing commented 3 months ago

你是升级rxhttp版本,还是项目首次接入rxhttp?

chenww713 commented 3 months ago

首次接入rxhttp

liujingxing commented 3 months ago

知道了,你的解析起泛型传入了<HttpResponse<T>>,这样是不生成toObserableXxxList系列方法的,因为不可能返回List<HttpResponse<T>>给你,改TypeParser<T>就会生成

chenww713 commented 3 months ago

好的问题解决了,谢谢大佬