Commit a8d4cb32 authored by 张艳玲's avatar 张艳玲

update

parent ac17aa28
package com.kjj.bean;
import lombok.Data;
@Data
public class GetShareSign {
private String posterUrl;
private String mpQrcode;
private String mpShareUrl;
private String mpShareTitle;
private String shareSign;
private String shareContent;
private String liveType;
}
package com.kjj.bean;
import lombok.Data;
import java.util.List;
@Data
public class LotteryList {
private List<List_Lottery> LotteryList;
private String welfareId;
private String configId;
@Data
public static class List_Lottery
{
private String id;
private String name;
}
}
package com.kjj.bean;
import lombok.Data;
import java.util.Date;
@Data
public class RedSimpleDetail {
private int totalAmount;
private int luckAmount;
private int luckNum;
private int luckHelpNum;
private Date startTime;
private int redStatus;
}
package com.kjj.bean; package com.kjj.bean.admin;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.agent;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.agent;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.agent;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.lottery;
import lombok.Data; import lombok.Data;
......
...@@ -2,8 +2,20 @@ package com.kjj.bean.lottery; ...@@ -2,8 +2,20 @@ package com.kjj.bean.lottery;
import lombok.Data; import lombok.Data;
import java.util.List;
@Data @Data
public class LotteryList { public class LotteryList {
private int drawDownNum; private List<List_Lottery> LotteryList;
private String welfareId;
private String configId;
@Data
public static class List_Lottery
{
private String id;
private String name;
}
} }
package com.kjj.bean; package com.kjj.bean.manager;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.manager;
import lombok.Data; import lombok.Data;
import java.util.List; import java.util.List;
......
package com.kjj.bean; package com.kjj.bean.manager;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.manager;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.manager;
import com.kjj.bean.manager.VoteBean;
import lombok.Data; import lombok.Data;
import java.util.List;
@Data @Data
public class VoteListBean { public class VoteListBean {
......
package com.kjj.bean; package com.kjj.bean.manager;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.manager;
import com.kjj.bean.manager.WelfareBean;
import lombok.Data; import lombok.Data;
import java.util.List; import java.util.List;
......
package com.kjj.bean; package com.kjj.bean.red;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.red;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.red;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.red;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.red;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.red;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.red;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.red;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.red;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.red;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.red;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.red;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.resources;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.resources;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.resources;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.resources;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.resources;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.resources;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.resources;
import lombok.Data; import lombok.Data;
......
package com.kjj.bean; package com.kjj.bean.resources;
import lombok.Data; import lombok.Data;
......
package com.kjj.cases.live;
import com.kjj.utils.NetworkUtils;
/**
* 管理员后台授权
*/
public interface MngAuthorization {
NetworkUtils network = NetworkUtils.getInstance();
default void mngAuth(){
// 创建sso用户 并传到network里
network.agentCookies.put("csrf_token","ff715857c2234f6577cbf1a57600c316");
network.agentCookies.put("sso_ticket","dcdc60f6fe4a0c5a439d15d67101400cb");
}
}
package com.kjj.cases.live; package com.kjj.cases.live.admin;
import com.kjj.utils.NetworkUtils; import com.kjj.utils.NetworkUtils;
import static com.kjj.config.BasicConfig.*; import static com.kjj.config.BasicConfig.*;
......
package com.kjj.cases.live; package com.kjj.cases.live.agent;
import com.kjj.cases.live.admin.AdminAuthorization;
import com.kjj.config.BasicConfig; import com.kjj.config.BasicConfig;
import com.kjj.constants.LiveConstants; import com.kjj.constants.LiveConstants;
import io.restassured.response.Response; import io.restassured.response.Response;
......
package com.kjj.cases.live; package com.kjj.cases.live.agent;
import com.alibaba.fastjson.JSONArray; import com.kjj.cases.live.admin.AdminAuthorization;
import com.alibaba.fastjson.JSONObject;
import com.kjj.config.BasicConfig; import com.kjj.config.BasicConfig;
import com.kjj.constants.LiveConstants; import com.kjj.constants.LiveConstants;
import io.restassured.response.Response; import io.restassured.response.Response;
...@@ -11,7 +10,6 @@ import org.testng.annotations.Test; ...@@ -11,7 +10,6 @@ import org.testng.annotations.Test;
import java.io.IOException; import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
......
package com.kjj.cases.live; package com.kjj.cases.live.agent;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.kjj.bean.AgentBean; import com.kjj.bean.agent.AgentBean;
import com.kjj.bean.AgentCard; import com.kjj.bean.agent.AgentCard;
import com.kjj.bean.AgentEndList; import com.kjj.bean.agent.AgentEndList;
import com.kjj.cases.live.admin.AdminAuthorization;
import com.kjj.config.BasicConfig; import com.kjj.config.BasicConfig;
import com.kjj.utils.JsonUtil; import com.kjj.utils.JsonUtil;
import io.restassured.response.Response; import io.restassured.response.Response;
...@@ -17,7 +18,7 @@ import java.util.List; ...@@ -17,7 +18,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
/*代理人端*/ /*代理人端*/
public class Procurator implements AdminAuthorization{ public class Procurator implements AdminAuthorization {
@BeforeClass @BeforeClass
public void setUp() { public void setUp() {
......
package com.kjj.cases.live; package com.kjj.cases.live.anchor;
import com.kjj.cases.live.admin.AdminAuthorization;
import com.kjj.config.BasicConfig; import com.kjj.config.BasicConfig;
import com.kjj.constants.LiveConstants; import com.kjj.constants.LiveConstants;
import io.restassured.response.Response; import io.restassured.response.Response;
...@@ -10,7 +11,7 @@ import org.testng.annotations.Test; ...@@ -10,7 +11,7 @@ import org.testng.annotations.Test;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
public class CloseLive implements AdminAuthorization{ public class CloseLive implements AdminAuthorization {
@BeforeClass @BeforeClass
......
package com.kjj.cases.live; package com.kjj.cases.live.anchor;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.kjj.bean.*; import com.kjj.bean.resources.*;
import com.kjj.cases.live.admin.AdminAuthorization;
import com.kjj.config.BasicConfig; import com.kjj.config.BasicConfig;
import com.kjj.constants.LiveConstants; import com.kjj.constants.LiveConstants;
import com.kjj.utils.JsonUtil; import com.kjj.utils.JsonUtil;
......
package com.kjj.cases.live; package com.kjj.cases.live.anchor;
import com.kjj.cases.live.admin.AdminAuthorization;
import com.kjj.config.BasicConfig; import com.kjj.config.BasicConfig;
import com.kjj.constants.LiveConstants; import com.kjj.constants.LiveConstants;
import com.kjj.utils.ThreadSleepUtils; import com.kjj.utils.ThreadSleepUtils;
......
package com.kjj.cases.live; package com.kjj.cases.live.lottery;
import com.kjj.bean.LotteryList; import com.kjj.bean.lottery.LotteryList;
import com.kjj.cases.live.admin.AdminAuthorization;
import com.kjj.config.BasicConfig; import com.kjj.config.BasicConfig;
import com.kjj.constants.LiveConstants; import com.kjj.constants.LiveConstants;
import com.kjj.utils.JsonUtil; import com.kjj.utils.JsonUtil;
...@@ -13,7 +14,7 @@ import java.util.HashMap; ...@@ -13,7 +14,7 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public class DesignatedWinner implements AdminAuthorization{ public class DesignatedWinner implements AdminAuthorization {
public List<LotteryList.List_Lottery> List_Lottery; public List<LotteryList.List_Lottery> List_Lottery;
public List<LotteryList> welfareId; public List<LotteryList> welfareId;
......
package com.kjj.cases.live; package com.kjj.cases.live.manager;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.kjj.bean.VoteBean; import com.kjj.bean.manager.VoteBean;
import com.kjj.bean.VoteListBean; import com.kjj.bean.manager.VoteListBean;
import com.kjj.bean.WelfareBean; import com.kjj.bean.manager.WelfareBean;
import com.kjj.bean.WelfareListBean; import com.kjj.bean.manager.WelfareListBean;
import com.kjj.cases.live.admin.AdminAuthorization;
import com.kjj.config.BasicConfig; import com.kjj.config.BasicConfig;
import com.kjj.utils.BaseUtils; import com.kjj.utils.BaseUtils;
import com.kjj.utils.JsonUtil; import com.kjj.utils.JsonUtil;
...@@ -14,16 +15,12 @@ import org.testng.annotations.Test; ...@@ -14,16 +15,12 @@ import org.testng.annotations.Test;
import java.util.*; import java.util.*;
public class LiveMaterial implements AdminAuthorization { public class LiveMaterial implements AdminAuthorization {
@BeforeClass @BeforeClass
public void setUp() { public void setUp() {
// adminAuth();
BaseUtils.ssoLogin(); BaseUtils.ssoLogin();
} }
@Test(description = "添加奖品", priority = 1) @Test(description = "添加奖品", priority = 1)
public void 添加奖品() { public void 添加奖品() {
......
package com.kjj.cases.live; package com.kjj.cases.live.manager;
import com.kjj.bean.AnswerBean; import com.kjj.bean.manager.AnswerBean;
import com.kjj.bean.AnswerListBean; import com.kjj.bean.manager.AnswerListBean;
import com.kjj.bean.RewardPkBean; import com.kjj.bean.manager.RewardPkBean;
import com.kjj.bean.answer.*; import com.kjj.bean.answer.*;
import com.kjj.cases.live.admin.AdminAuthorization;
import com.kjj.config.BasicConfig; import com.kjj.config.BasicConfig;
import com.kjj.constants.LiveConstants; import com.kjj.constants.LiveConstants;
import com.kjj.utils.BaseUtils; import com.kjj.utils.BaseUtils;
......
package com.kjj.cases.live; package com.kjj.cases.live.red;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.kjj.bean.*; import com.kjj.bean.red.*;
import com.kjj.cases.live.admin.AdminAuthorization;
import com.kjj.config.BasicConfig; import com.kjj.config.BasicConfig;
import com.kjj.constants.LiveConstants; import com.kjj.constants.LiveConstants;
import com.kjj.utils.JsonUtil; import com.kjj.utils.JsonUtil;
...@@ -14,7 +15,7 @@ import java.util.HashMap; ...@@ -14,7 +15,7 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public class LiveVistorRed implements AdminAuthorization{ public class LiveVistorRed implements AdminAuthorization {
public String confId_Red; public String confId_Red;
public String visitor_red; public String visitor_red;
......
package com.kjj.cases.live; package com.kjj.cases.live.red;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.kjj.bean.answer.*; import com.kjj.bean.answer.*;
import com.kjj.cases.live.admin.AdminAuthorization;
import com.kjj.config.BasicConfig; import com.kjj.config.BasicConfig;
import com.kjj.constants.LiveConstants; import com.kjj.constants.LiveConstants;
import com.kjj.utils.JsonUtil; import com.kjj.utils.JsonUtil;
...@@ -16,7 +17,7 @@ import java.util.HashMap; ...@@ -16,7 +17,7 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public class QuestionAwards implements AdminAuthorization{ public class QuestionAwards implements AdminAuthorization {
public String confId_ques; public String confId_ques;
public String confId_reward; public String confId_reward;
......
package com.kjj.cases.live; package com.kjj.cases.live.user;
import com.kjj.cases.live.admin.AdminAuthorization;
import com.kjj.config.BasicConfig; import com.kjj.config.BasicConfig;
import com.kjj.constants.LiveConstants; import com.kjj.constants.LiveConstants;
import io.restassured.response.Response; import io.restassured.response.Response;
...@@ -10,7 +11,7 @@ import java.util.HashMap; ...@@ -10,7 +11,7 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public class User implements AdminAuthorization{ public class User implements AdminAuthorization {
@BeforeClass @BeforeClass
public void setUp() { visitorAuth(); } public void setUp() { visitorAuth(); }
......
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