1、正常情况下:
@POST("medicalRecord/getRecordPageForPharmacy") fun getPrescriptionRecord(@Body request: RequestBody): Call<ResultInfo<PageModel<PrescriptionEntity>>>
retrofit 中baseUrl 为 http://xxxx:8080/web-mobile/
访问完整地址:http://xxxx:8080/web-mobile/medicalRecord/getRecordPageForPharmacy
2、出现问题:
@POST("medicalRecord/getRecordPageForPharmacy") fun getPrescriptionRecord(@Body request: RequestBody?): Call<ResultInfo<PageModel<PrescriptionEntity>>>
retrofit 中baseUrl 为 http://xxxx:8080/web-mobile/
访问完整地址:http://xxxx:8080/medicalRecord/getRecordPageForPharmacy
问题点 缺少web-mobile
出现问题的原因:在service 中 @Body request: RequestBody? 多了一个?号