|
@@ -17,6 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
@@ -31,8 +32,14 @@ import java.util.Map;
|
|
|
public class KuaishouTemplateServiceImpl extends ServiceImpl<KuaishouTemplateMapper, KuaishouTemplate> implements IKuaishouTemplateService {
|
|
|
@Autowired
|
|
|
private IKuaishouTemplateTargetService templateTargetService;
|
|
|
+ @Autowired
|
|
|
+ private KuaishouTemplateMapper templateMapper;
|
|
|
|
|
|
@Override
|
|
|
+ public List<JSONObject> getJsonArrByAccountId(Long accountId) {
|
|
|
+ return templateMapper.getJsonArrByAccountId(accountId);
|
|
|
+ }
|
|
|
+ @Override
|
|
|
public void getTemplateByAccountId(Long accountId, String accessToken, Integer page) {
|
|
|
String url = PropertiesUtils.getConfig("kuaishou_api_url") + KuaishouInterfaceConstant.TEMPLATE_LIST;
|
|
|
JSONObject param = new JSONObject();
|