feat: fix api define
This commit is contained in:
@@ -452,7 +452,7 @@ interface Api {
|
|||||||
* 接口路径: /IntExpAssemble/allocate/pageQuery
|
* 接口路径: /IntExpAssemble/allocate/pageQuery
|
||||||
*/
|
*/
|
||||||
@POST("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({
|
launchLoadingCollect({
|
||||||
NetApply.api.getGjcAssembleAllocateList(listParams)
|
NetApply.api.getGjcAssembleAllocateList(listParams)
|
||||||
}) {
|
}) {
|
||||||
onSuccess = { result ->
|
onSuccess = { pageInfo ->
|
||||||
// 将 PageInfo 转换为 BaseListBean
|
// 直接转换为 BaseListBean
|
||||||
result.data?.let { pageModel.handleListBean(it.toBaseListBean()) }
|
pageModel.handleListBean(pageInfo.toBaseListBean())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user