/** * 推广计划更新 * * @param list 推广计划列表 * @return * @throws ApiException */ public List<CampaignType> updateCampaign(List<CampaignType> list) throws ApiException { if (list == null || list.isEmpty()) { return Collections.emptyList(); } UpdateCampaignRequest request = new UpdateCampaignRequest(); request.setCampaignTypes(list); CampaignService campaignService = commonService.getService(CampaignService.class); UpdateCampaignResponse response = campaignService.updateCampaign(request); if (response == null) return Collections.emptyList(); return response.getCampaignTypes(); }