feat: fix api define

This commit is contained in:
2025-12-04 16:45:10 +08:00
parent 6f89ad0520
commit 22adce2964
2 changed files with 4 additions and 4 deletions

View File

@@ -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>
/** /**
* 国际出港组装分配-分页合计统计 * 国际出港组装分配-分页合计统计

View File

@@ -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())
} }
} }