Просмотр исходного кода

2024-10-12 修改

修改:
1. API请求路径修改
zhaiy месяцев назад: 5
Родитель
Сommit
1509a2e2be
1 измененных файлов с 48 добавлено и 48 удалено
  1. 48 48
      app/src/main/java/com/pan_american/android/data/network/APIService.kt

+ 48 - 48
app/src/main/java/com/pan_american/android/data/network/APIService.kt

@@ -826,290 +826,290 @@ interface APIService {
     /**
      * 邀请资料,删除文件
      */
-    @DELETE("api/Resource/InvitationOfficialActivityDelFile/{id}")
+    @DELETE("/api/Resource/InvitationOfficialActivityDelFile/{id}")
     fun deleteInviteDataFile(@Path("id") id: Int, @Query("fileName") fileName: String): Call<BaseResponse>
 
     /**
      * 文档下载 团组list
      */
-    @POST("api/Business/PostGroupListByCTableAndUserId")
+    @POST("/api/Business/PostGroupListByCTableAndUserId")
     fun documentGroupList(@Body documentGroupListRequest: DocumentGroupListRequest): Call<SelectorResponse>
 
     /**
      * 文档下载 酒店资料 voucher
      */
-    @POST("api/Groups/PostHotelReservationsCreateVoucherBatchNew")
+    @POST("/api/Groups/PostHotelReservationsCreateVoucherBatchNew")
     fun hotelVoucherGenerate(@Body hotelDocumentGenerateRequest: HotelDocumentGenerateRequest): Call<HotelDocumentGenerateResponse>
 
     /**
      * 文档下载 酒店资料 确认单
      */
-    @POST("api/Groups/PostHotelReservationsConfirmationSlip")
+    @POST("/api/Groups/PostHotelReservationsConfirmationSlip")
     fun hotelConfirmListGenerate(@Body hotelDocumentGenerateRequest: HotelDocumentGenerateRequest): Call<HotelDocumentGenerateResponse>
 
     /**
      * 文档下载 酒店资料 预订成本excel
      */
-    @POST("api/Groups/PostHotelReservationsPredictedCostFileDownload")
+    @POST("/api/Groups/PostHotelReservationsPredictedCostFileDownload")
     fun hotelPredetermineCostGenerate(@Body hotelDocumentGenerateRequest: HotelDocumentGenerateRequest): Call<HotelDocumentGenerateResponse>
 
     /**
      * 文档下载 机票资料 导出报表
      */
-    @POST("api/Groups/DeriveAirTicketRes")
+    @POST("/api/Groups/DeriveAirTicketRes")
     fun airplaneTicketReportFormGenerate(@Body airplaneReportFormGenerateRequest: AirplaneReportFormGenerateRequest): Call<AirplaneTicketDocumentGenerateResponse>
 
     /**
      * 文档下载 机票资料 行程单导出
      */
-    @POST("api/Groups/ItineraryAirTicketRes")
+    @POST("/api/Groups/ItineraryAirTicketRes")
     fun airplaneTravelItineraryGenerate(@Body airplaneTravelItineraryGenerateRequest: AirplaneTravelItineraryGenerateRequest): Call<AirplaneTicketDocumentGenerateResponse>
 
     /**
      * 文档下载 团组经理主管 团组名单
      */
-    @POST("api/Groups/PostTourClientListDownloadFile")
+    @POST("/api/Groups/PostTourClientListDownloadFile")
     fun groupCustomerListGenerate(@Body groupCustomerListGenerateRequest: GroupCustomerListGenerateRequest): Call<GroupManagerDocumentGenerateResponse>
 
     /**
      * 文档下载 团组经理主管 倒推表
      */
-    @POST("api/Groups/PostInvertedListFileDownload")
+    @POST("/api/Groups/PostInvertedListFileDownload")
     fun groupReverseTableGenerate(@Body groupReverseTableGenerateRequest: GroupReverseTableGenerateRequest): Call<GroupManagerDocumentGenerateResponse>
 
     /**
      * 文档下载 出入境费用明细
      */
-    @POST("api/Groups/PostEnterExitCostDownload")
+    @POST("/api/Groups/PostEnterExitCostDownload")
     fun groupEnterExitCostGenerate(@Body groupEnterExitCostGenerateRequest: GroupEnterExitCostGenerateRequest): Call<GroupManagerDocumentGenerateResponse>
 
     /**
      * 文档下载,导出行程单
      */
-    @POST("api/Groups/ExportTravel")
+    @POST("/api/Groups/ExportTravel")
     fun groupTravelListGenerate(@Body groupTravelListGenerateRequest: GroupTravelListGenerateRequest): Call<GroupTravelListGenerateResponse>
 
     /**
      * 市场部营业额,基础数据源(公司、人员、月份、季度)
      */
-    @POST("api/Statistics/PostMarketingSalesInitData")
+    @POST("/api/Statistics/PostMarketingSalesInitData")
     fun getMarketSalesRevenueBaseData(@Body marketSalesRevenueBaseRequest: MarketSalesRevenueBaseRequest): Call<MarketSalesRevenueBaseResponse>
 
     /**
      * 市场部营业额,年度/季度/月度 报表
      */
-    @POST("api/Statistics/PostMarketingSalesStatistics")
+    @POST("/api/Statistics/PostMarketingSalesStatistics")
     fun getMarketSalesStatistics(@Body marketSalesStatisticsRequest: MarketSalesStatisticsRequest): Call<MarketSalesStatisticsResponse>
 
     /**
      * 市场部营业额,客户类型、客户等级统计
      * statisticsType:  1.客户类型  2.客户等级
      */
-    @POST("api/Statistics/PostMarketingSalesGroupStatistics")
+    @POST("/api/Statistics/PostMarketingSalesGroupStatistics")
     fun getMarketSalesRevenueCustomerStatistics(@Body marketSalesStatisticsCustomerRequest: MarketSalesStatisticsCustomerRequest): Call<MarketSalesStatisticsCustomerResponse>
 
     /**
      * 市场部营业额,销售成单量排名
      */
-    @POST("api/Statistics/PostMarketingSalesOrderRanking")
+    @POST("/api/Statistics/PostMarketingSalesOrderRanking")
     fun getMarketSalesOrderRanking(@Body marketSalesStatisticsRequest: MarketSalesStatisticsRequest): Call<MarketSalesOrderRankResponse>
 
     /**
      * 市场营业额,团组列表
      */
-    @POST("api/Statistics/PostMarketingSalesGroupList")
+    @POST("/api/Statistics/PostMarketingSalesGroupList")
     fun getMarketSalesGroupList(@Body marketSalesStatisticsRequest: MarketSalesStatisticsRequest): Call<MarketSalesGroupListResponse>
 
     /**
      * 市场营业额,团组列表-拜访记录
      */
-    @POST("api/Statistics/PostMarketingSalesVCList")
+    @POST("/api/Statistics/PostMarketingSalesVCList")
     fun getMarketSalesVisitHistory(@Body marketSalesVisitHistoryRequest: MarketSalesVisitHistoryRequest): Call<MarketSalesVisitHistoryResponse>
 
     /**
      * 市场营业额,团组列表-删除拜访记录
      */
-    @POST("api/Statistics/PostMarketingSalesVCDel")
+    @POST("/api/Statistics/PostMarketingSalesVCDel")
     fun deleteMarketSalesVisitHistory(@Body deleteRequest: DeleteRequest): Call<BaseResponse>
 
     /**
      * 市场营业额,团组列表-添加/修改拜访记录
      */
-    @POST("api/Statistics/PostMarketingSalesVCOperate")
+    @POST("/api/Statistics/PostMarketingSalesVCOperate")
     fun updateMarketSalesVisitHistory(@Body marketSalesAddVisitHistoryRequest: MarketSalesAddVisitHistoryRequest): Call<BaseResponse>
 
     /**
      * 查看关联邀请方,搜索基础数据源,邀请方
      */
-    @POST("api/Groups/PostGroupLinkInvitingUnitNameInit")
+    @POST("/api/Groups/PostGroupLinkInvitingUnitNameInit")
     fun getGroupRelatedDataSourceInviteeName(@Body relatedInviteeDataResourceRequest: RelatedInviteeDataResourceRequest): Call<SelectorResponse>
 
     /**
      * 查看关联邀请方,搜索基础数据源,国家
      */
-    @POST("api/Groups/PostGroupLinkInvitingCountryInit")
+    @POST("/api/Groups/PostGroupLinkInvitingCountryInit")
     fun getGroupRelatedDataSourceCountryName(@Body relatedInviteeDataResourceRequest: RelatedInviteeDataResourceRequest): Call<SelectorResponse>
 
     /**
      * 查看关联邀请方,搜索基础数据源,城市
      */
-    @POST("api/Groups/PostGroupLinkInvitingCityInit")
+    @POST("/api/Groups/PostGroupLinkInvitingCityInit")
     fun getGroupRelatedDataSourceCityName(@Body relatedInviteeCityDataResourceRequest: RelatedInviteeCityDataResourceRequest): Call<SelectorResponse>
 
     /**
      * 查看关联邀请方,搜索基础数据源,团组名称
      */
-    @POST("api/Groups/PostGroupLinkInvitingGroupInit")
+    @POST("/api/Groups/PostGroupLinkInvitingGroupInit")
     fun getGroupRelatedDataSourceGroupName(@Body relatedInviteeDataResourceRequest: RelatedInviteeDataResourceRequest): Call<SelectorResponse>
 
     /**
      * 关联邀请方,获取符合筛选条件的团组list
      */
-    @POST("api/Groups/PostGroupLinkInvitingPageList")
+    @POST("/api/Groups/PostGroupLinkInvitingPageList")
     fun getRelatedInviteeGroupList(@Body relatedInviteeListRequest: RelatedInviteeListRequest): Call<RelatedInviteeListResponse>
 
     /**
      * 公共接口,基础数据源,团组名称
      */
-    @POST("api/Groups/QueryGroupListOffset")
+    @POST("/api/Groups/QueryGroupListOffset")
     fun getGroupNameWithSearch(@Body simpleGroupInfoRequest: SimpleGroupInfoRequest): Call<SimpleGroupInfoResponse>
 
     /**
      * 票据管理,获取当前团组 当前板块的票据
      */
-    @POST("api/Groups/QueryGroupModelFile")
+    @POST("/api/Groups/QueryGroupModelFile")
     fun getBillFileList(@Body billFileListRequest: BillFileListRequest): Call<BillFileListResponse>
 
     /**
      * 票据管理,删除票据
      */
-    @POST("api/Groups/DeleteGroupFile")
+    @POST("/api/Groups/DeleteGroupFile")
     fun deleteBillFile(@Body deleteRequest: DeleteRequest): Call<BaseResponse>
 
     /**
      * 票据管理,下载该团所有模块票据
      */
-    @POST("api/Groups/ExportGroupZip")
+    @POST("/api/Groups/ExportGroupZip")
     fun downloadGroupAllBillFile(@Body billFileDownloadAllRequest: BillFileDownloadAllRequest): Call<BillFileDownloadAllResponse>
 
     /**
      * 票据管理,下载该团当前模块所有票据
      */
-    @POST("api/Groups/ExportGroupByModule")
+    @POST("/api/Groups/ExportGroupByModule")
     fun downloadGroupThisModelBillFile(@Body billFileDownloadThisModelRequest: BillFileDownloadThisModelRequest): Call<BillFileDownloadThisModelResponse>
 
     /**
      * 公务出访,根据团组ID获取
      */
-    @POST("api/Resource/QueryOfficialActivitiesByDiId")
+    @POST("/api/Resource/QueryOfficialActivitiesByDiId")
     fun getGroupOfficialVisitList(@Body officialVisitListRequest: OfficialVisitListRequest): Call<OfficialVisitListResponse>
 
     /**
      * 公务出访,删除公务出访信息
      */
-    @POST("api/Resource/DelOfficialActivities")
+    @POST("/api/Resource/DelOfficialActivities")
     fun deleteGroupOfficialVisit(@Body deleteRequest: DeleteRequest): Call<BaseResponse>
 
     /**
      * 公务出访,省外办/市外办 文件下载
      */
-    @POST("api/Resource/OfficialActivitiesFileDownload")
+    @POST("/api/Resource/OfficialActivitiesFileDownload")
     fun downloadProvinceAndCityRequestFile(@Body provinceAndCityDownloadFileRequest: ProvinceAndCityDownloadFileRequest):Call<ProvinceAndCityDownloadFileResponse>
 
     /**
      * 基础数据源,通用接口
      */
-    @POST("api/System/QuerySetDataInitByArr")
+    @POST("/api/System/QuerySetDataInitByArr")
     fun getQueryDataSet(@Body queryDataSetRequest: QueryDataSetRequest): Call<QueryDataSetResponse>
 
     /**
      * 公务出访,新增/修改数据
      * status:  1.新增    2.修改
      */
-    @POST("api/Resource/OpOfficialActivities")
+    @POST("/api/Resource/OpOfficialActivities")
     fun updateOfficialVisitData(@Body updateOfficialVisitRequest: UpdateOfficialVisitRequest): Call<UpdateOfficialVisitResponse>
 
     /**
      * 公务出访,图片文件上传
      */
-    @POST("api/Resource/OfficialActivitiesUploadFiles")
+    @POST("/api/Resource/OfficialActivitiesUploadFiles")
     fun uploadOfficialPic(@Body requestBody: RequestBody): Call<BaseResponse>
 
     /**
      * 公务出访,删除图片
      */
-    @POST("api/Resource/OfficialActivitiesDelFile")
+    @POST("/api/Resource/OfficialActivitiesDelFile")
     fun deleteOfficialPic(@Body deleteOfficialVisitPic: DeleteOfficialVisitPic): Call<BaseResponse>
 
     /**
      * 公务出访,根据id获取公务出访详情
      */
-    @POST("api/Resource/QueryOfficialActivitiesById")
+    @POST("/api/Resource/QueryOfficialActivitiesById")
     fun getOfficialVisitDetailById(@Body getOfficialVisitDetailRequest: GetOfficialVisitDetailRequest): Call<GetOfficialVisitDetailResponse>
 
     /**
      * 公务出访,复核确认/取消确认
      */
-    @POST("api/Resource/OfficialActivitiesInviteOperation")
+    @POST("/api/Resource/OfficialActivitiesInviteOperation")
     fun updateOfficialVisitCheckCommit(@Body updateOfficialVisitCheckCommitRequest: UpdateOfficialVisitCheckCommitRequest):Call<BaseResponse>
 
     /**
      * 提成确认,查询提成列表
      */
-    @POST("api/Financial/QueryRoyaltyInfo")
+    @POST("/api/Financial/QueryRoyaltyInfo")
     fun getCommissionConfirmList(@Body commissionConfirmListRequest: CommissionConfirmListRequest): Call<CommissionConfirmListResponse>
 
     /**
      * 提成确认,个人确认提成
      */
-    @POST("api/Financial/RoyaltyConfirmByUser")
+    @POST("/api/Financial/RoyaltyConfirmByUser")
     fun updateCommissionConfirmStatus(@Body updateCommissionStatusRequest: UpdateCommissionStatusRequest): Call<BaseResponse>
 
     /**
      * 物资进销存,获取基础数据源
      */
-    @GET("api/PersonnelModule/GoodsInitDataSource")
+    @GET("/api/PersonnelModule/GoodsInitDataSource")
     fun getMaterialTypeDataResource(): Call<MaterialBaseDataResponse>
 
     /**
      * 物资进销存,查询物资列表
      */
-    @POST("api/PersonnelModule/GoodsList")
+    @POST("/api/PersonnelModule/GoodsList")
     fun getMaterialList(@Body materialSearchRequest: MaterialSearchRequest): Call<MaterialSearchResponse>
 
     /**
      * 物资进销存,物资申领
      */
-    @POST("api/PersonnelModule/GoodsReceiveOP")
+    @POST("/api/PersonnelModule/GoodsReceiveOP")
     fun materialApplicationOperate(@Body materialApplicationRequest: MaterialApplicationRequest, @Header("Authorization") headerValue: String = OASystem.token): Call<MaterialApplicationResponse>
 
     /**
      * 物资进销存,领用历史记录
      */
-    @POST("api/PersonnelModule/GoodsReceiveList")
+    @POST("/api/PersonnelModule/GoodsReceiveList")
     fun getMaterialHistoryList(@Body materialHistoryListRequest: MaterialHistoryListRequest): Call<MaterialHistoryListResponse>
 
     /**
      * 费用审核,获取团组列表
      */
-    @POST("api/Groups/PostExpenseAuditGroupPageItems")
+    @POST("/api/Groups/PostExpenseAuditGroupPageItems")
     fun getExpenseApprovalGroupList(@Body expenseApprovalGroupListRequest: ExpenseApprovalGroupListRequest): Call<ExpenseApprovalGroupListResponse>
 
     /**
      * 费用审核,获取费用分类
      */
-    @POST("api/Business/PostGroupDirectionalClassificationInit")
+    @POST("/api/Business/PostGroupDirectionalClassificationInit")
     fun getExpenseApprovalPaymentType(): Call<ExpenseApprovalPaymentTypeResponse>
 
     /**
      * 费用审核,根据label获取费用列表
      */
-    @POST("api/Groups/PostSearchGrpCreditCardPayment")
+    @POST("/api/Groups/PostSearchGrpCreditCardPayment")
     fun getExpenseApprovalPaymentByLabel(@Body expenseApprovalPaymentListRequest: ExpenseApprovalPaymentListRequest): Call<ExpenseApprovalPaymentListResponse>
 
     /**
      * 费用审核,获取简易团组信息
      */
-    @POST("api/Business/PostShareGroupInfo")
+    @POST("/api/Business/PostShareGroupInfo")
     fun getBaseGroupInfo(@Body baseGroupInfoRequest: BaseGroupInfoRequest): Call<BaseGroupInfoResponse>
 }