Commit cc53b4de authored by xiamengchen's avatar xiamengchen

更新运营周报部分

parent abada3c4
package com.kjj.bean.whoSawMe;
import lombok.Data;
import java.util.List;
@Data
public class WeeklyList {
private String yearMonth;
private List<weeklyPublication> weeklyPublications;
@Data
public static class weeklyPublication{
private String endDate;
private int freshVisitorNum;
private String id;
private int keyCluesNum;
private boolean newWeekly;
private String startDate;
private int totalShareNum;
private int totalVisitorNum;
}
}
......@@ -150,6 +150,24 @@ public class ForwardAndRead implements Authorization {
Assert.assertEquals(data, "success", network.message(param, BasicConfig.SELLERCARD_SENDPUSHFORSCAN, "领取赠险失败", response.body().asString()));
}
@Test(description = "获取文章FAQs", priority = 9)
public void 获取文章FAQs() throws IOException{
param.clear();
param.put("scid", articleScId);
param.put("recommend", 1);
param.put("pageIndex", 1);
param.put("pageSize", 2);
response = network.getResponse(param, BasicConfig.ARTICLE_ENHANCEDCOLUMN_GETFAQS);
int totalCount = response.jsonPath().getInt("data.totalCount");
List<Object> lists = response.jsonPath().getList("data.list");
Assert.assertEquals(totalCount, lists.size(), network.message(param, BasicConfig.ARTICLE_ENHANCEDCOLUMN_GETFAQS, "FAQ总数与FAQ列表大小不一致", response.body().asString()));
}
// @Test(description = "二度访客点击FAQ", priority = 10)
// public void 二度访客点击FAQ() throws IOException{
//
// }
// 通过素材contentId获取线索员文章scId
public String getContentScId(String contentId){
param = new HashMap<>();
......
......@@ -723,6 +723,15 @@ public class BasicConfig {
public static final String CLUEINFO = HOST + "/kjy/mp/whoSawMe/clue/info";
public static final String CLUEADVISE = HOST + "/kjy/mp/whoSawMe/clue/info/advise";
// *************** 运营周报 ***************
public static final String WEEKLY_INDEXINFO = HOST + "/kjy/mp/weekly/getWeeklyIndexInfo";
public static final String WEEKLY_CONTENTSTATS = HOST + "/kjy/mp/weekly/getSellerContentStatsInfo";
public static final String WEEKLY_CARDSTATS = HOST + "/kjy/mp/weekly/getSellerCardStatsInfo";
public static final String WEEKLY_CUSTOMERSTATS = HOST + "/kjy/mp/weekly/getSellerWeeklyCustomerStatsInfo";
public static final String WEEKLY_CLUESTATS = HOST + "/kjy/mp/weekly/getSellerWeeklyClueStatsInfo";
public static final String WEEKLY_DATESTATS = HOST + "/kjy/mp/weekly/getSellerWeeklyDateStatsInfo";
public static final String WEEKLY_POSTERINFO = HOST + "/kjy/mp/weekly/getSellerWeeklyPosterInfo";
// *************** 客户信息 ***************
public static final String CUSTINFOHEADER = HOST + "/kjy/mp/whoSawMe/custInfoHeader";
public static final String CUSTINFO = HOST + "/kjy/mp/seller/v2/custInfo";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment