feat: fix api define
This commit is contained in:
@@ -452,7 +452,7 @@ interface Api {
|
||||
* 接口路径: /IntExpAssemble/allocate/pageQuery
|
||||
*/
|
||||
@POST("IntExpAssemble/allocate/pageQuery")
|
||||
suspend fun getGjcAssembleAllocateList(@Body params: RequestBody): BaseResultBean<PageInfo<GjcAssembleAllocate>>
|
||||
suspend fun getGjcAssembleAllocateList(@Body params: RequestBody): PageInfo<GjcAssembleAllocate>
|
||||
|
||||
/**
|
||||
* 国际出港组装分配-分页合计统计
|
||||
|
||||
@@ -82,9 +82,9 @@ class GjcAssembleAllocateViewModel : BasePageViewModel() {
|
||||
launchLoadingCollect({
|
||||
NetApply.api.getGjcAssembleAllocateList(listParams)
|
||||
}) {
|
||||
onSuccess = { result ->
|
||||
// 将 PageInfo 转换为 BaseListBean
|
||||
result.data?.let { pageModel.handleListBean(it.toBaseListBean()) }
|
||||
onSuccess = { pageInfo ->
|
||||
// 直接转换为 BaseListBean
|
||||
pageModel.handleListBean(pageInfo.toBaseListBean())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user