|
@@ -8,7 +8,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.jeecg.modules.ctop.entity.*;
|
|
|
import org.jeecg.modules.ctop.mapper.*;
|
|
|
import org.jeecg.modules.ctop.service.IByteDanceAdvertiserDataService;
|
|
|
-import org.jeecg.modules.ctop.service.ICTopOauthTokenService;
|
|
|
+import org.jeecg.modules.ctop.service.ICtopOauthTokenService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -24,7 +24,7 @@ import java.util.TreeMap;
|
|
|
@Service
|
|
|
public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserDataService {
|
|
|
@Autowired
|
|
|
- private ICTopOauthTokenService tokenService;
|
|
|
+ private ICtopOauthTokenService tokenService;
|
|
|
@Autowired
|
|
|
private ByteDanceAdvertisePlanMapper advertisePlanMapper;
|
|
|
@Autowired
|
|
@@ -45,7 +45,7 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
|
|
|
@Override
|
|
|
public Map<String, Object> getAdvertiserInfo(String accountId) {
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
- CTopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
+ CtopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
//2: 根据token以及用户id获取用户信息数据
|
|
|
String url = PropertiesUtils.getValue("bytedance_config", "bytedance_api_url") + PropertiesUtils.getValue("bytedance_config", "bytedance_v2_advertiser_info");
|
|
|
Map<String, String> headers = new HashMap<>();
|
|
@@ -87,7 +87,7 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
|
|
|
}
|
|
|
|
|
|
private void getAdvertiserPlanByPageNumber(String accountId, Integer pageNumber, String ids) {
|
|
|
- CTopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
+ CtopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
//2: 根据token以及用户id获取用户信息数据
|
|
|
String url = PropertiesUtils.getValue("bytedance_config", "bytedance_api_url") + PropertiesUtils.getValue("bytedance_config", "bytedance_v2_ad_get");
|
|
|
Map<String, String> headers = new HashMap<>();
|
|
@@ -153,7 +153,7 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
|
|
|
@Override
|
|
|
public Map<String, Object> getAdvertiserBudget(String accountId) {
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
- CTopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
+ CtopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
//2: 根据token以及用户id获取用户信息数据
|
|
|
String url = PropertiesUtils.getValue("bytedance_config", "bytedance_api_url") + PropertiesUtils.getValue("bytedance_config", "bytedance_v2_campaign_get");
|
|
|
Map<String, String> headers = new HashMap<>();
|
|
@@ -203,7 +203,7 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
|
|
|
@Override
|
|
|
public Map<String, Object> getAdvertiserCreativeMaterial(String accountId, String creativeIds) {
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
- CTopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
+ CtopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
//2: 根据token以及用户id获取用户信息数据
|
|
|
String url = PropertiesUtils.getValue("bytedance_config", "bytedance_api_url") + PropertiesUtils.getValue("bytedance_config", "bytedance_v2_creative_material_get");
|
|
|
Map<String, String> headers = new HashMap<>();
|
|
@@ -252,7 +252,7 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
|
|
|
ids.add(Long.parseLong(getIds[i]));
|
|
|
}
|
|
|
}
|
|
|
- CTopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
+ CtopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
//2: 根据token以及用户id获取用户信息数据
|
|
|
String url = PropertiesUtils.getValue("bytedance_config", "bytedance_api_url") + PropertiesUtils.getValue("bytedance_config", "bytedance_v2_campaign_update_status");
|
|
|
Map<String, String> headers = new HashMap<>();
|
|
@@ -299,7 +299,7 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
|
|
|
@Override
|
|
|
public Map<String, Object> advertiserCampaignUpdate(String accountId, Long campaignId, String budgetMode, Integer budget, String campaignName) {
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
- CTopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
+ CtopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
ByteDanceCampaign campaign = campaignMapper.selectById(campaignId);
|
|
|
//2: 根据token以及用户id获取用户信息数据
|
|
|
String url = PropertiesUtils.getValue("bytedance_config", "bytedance_api_url") + PropertiesUtils.getValue("bytedance_config", "bytedance_v2_campaign_update");
|
|
@@ -365,7 +365,7 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
|
|
|
ids.add(Long.parseLong(getIds[i]));
|
|
|
}
|
|
|
}
|
|
|
- CTopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
+ CtopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
//2: 根据token以及用户id获取用户信息数据
|
|
|
String url = PropertiesUtils.getValue("bytedance_config", "bytedance_api_url") + PropertiesUtils.getValue("bytedance_config", "bytedance_v2_ad_update_status");
|
|
|
Map<String, String> headers = new HashMap<>();
|
|
@@ -420,7 +420,7 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
|
|
|
data.add(object);
|
|
|
}
|
|
|
}
|
|
|
- CTopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
+ CtopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
//2: 根据token以及用户id获取用户信息数据
|
|
|
String url = PropertiesUtils.getValue("bytedance_config", "bytedance_api_url") + PropertiesUtils.getValue("bytedance_config", "bytedance_v2_ad_update_bid");
|
|
|
Map<String, String> headers = new HashMap<>();
|
|
@@ -474,7 +474,7 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
|
|
|
data.add(object);
|
|
|
}
|
|
|
}
|
|
|
- CTopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
+ CtopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
//2: 根据token以及用户id获取用户信息数据
|
|
|
String url = PropertiesUtils.getValue("bytedance_config", "bytedance_api_url") + PropertiesUtils.getValue("bytedance_config", "bytedance_v2_ad_update_budget");
|
|
|
Map<String, String> headers = new HashMap<>();
|
|
@@ -520,7 +520,7 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
|
|
|
ids.add(Long.parseLong(getCreativeIds[i]));
|
|
|
}
|
|
|
}
|
|
|
- CTopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
+ CtopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
//2: 根据token以及用户id获取用户信息数据
|
|
|
String url = PropertiesUtils.getValue("bytedance_config", "bytedance_api_url") + PropertiesUtils.getValue("bytedance_config", "bytedance_v2_creative_update_status");
|
|
|
Map<String, String> headers = new HashMap<>();
|
|
@@ -566,7 +566,7 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
|
|
|
@Override
|
|
|
public Map<String, Object> advertiserCustomAudienceSelect(String accountId) {
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
- CTopOauthToken token = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
+ CtopOauthToken token = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
|
|
|
String url = PropertiesUtils.getValue("bytedance_config", "bytedance_api_url") + PropertiesUtils.getValue("bytedance_config", "bytedance_v2_dmp_custom_audience_select");
|
|
|
Map<String, String> headers = new HashMap<>();
|
|
@@ -611,7 +611,7 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
|
|
|
}
|
|
|
|
|
|
private void getAdvertiserCreativeByPageNumber(String accountId, Integer pageNumber, String ids) {
|
|
|
- CTopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
+ CtopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
//2: 根据token以及用户id获取用户信息数据
|
|
|
String url = PropertiesUtils.getValue("bytedance_config", "bytedance_api_url") + PropertiesUtils.getValue("bytedance_config", "bytedance_v2_creative_get");
|
|
|
Map<String, String> headers = new HashMap<>();
|
|
@@ -656,7 +656,7 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
|
|
|
}
|
|
|
|
|
|
private void getAdvertiserCampaignByPageNumber(String accountId, Integer pageNumber, String ids) {
|
|
|
- CTopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
+ CtopOauthToken cTopOauthToken = tokenService.getOauthTokenByAccountId(accountId);
|
|
|
//2: 根据token以及用户id获取用户信息数据
|
|
|
String url = PropertiesUtils.getValue("bytedance_config", "bytedance_api_url") + PropertiesUtils.getValue("bytedance_config", "bytedance_v2_campaign_get");
|
|
|
Map<String, String> headers = new HashMap<>();
|