use of com.code.server.login.anotation.AuthChecker in project summer by foxsugar.
the class TodayChargeAction method showTodayTwoLevelChargeList.
@AuthChecker
// 二级代理充值记录
@RequestMapping("/dlevel2Charges")
public AgentResponse showTodayTwoLevelChargeList(String start, String end) {
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
HttpServletRequest request = attributes.getRequest();
long agentId = AgentUtil.getAgentByRequest(request);
Date startDate = DateUtil.convert2Date(start);
Date endDate = DateUtil.convert2Date(end);
TwoLevelVo twoLevelVo = todayChargeService.twoLevelCharges(startDate, endDate, agentId);
Map<String, Object> result = new HashMap<>();
result.put("result", twoLevelVo);
AgentResponse agentResponse = new AgentResponse(200, result);
return agentResponse;
}
use of com.code.server.login.anotation.AuthChecker in project summer by foxsugar.
the class TodayChargeAction method showTodayOneLevelChargeList.
@AuthChecker
@RequestMapping("/dlevel1Charges")
public AgentResponse showTodayOneLevelChargeList(String start, String end) {
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
HttpServletRequest request = attributes.getRequest();
long agentId = AgentUtil.getAgentByRequest(request);
Date startDate = DateUtil.convert2Date(start);
Date endDate = DateUtil.convert2Date(end);
OneLevelVo oneLevelVo = todayChargeService.oneLevelCharges(startDate, endDate, agentId);
Map<String, Object> result = new HashMap<>();
result.put("result", oneLevelVo);
AgentResponse agentResponse = new AgentResponse(200, result);
return agentResponse;
}
use of com.code.server.login.anotation.AuthChecker in project summer by foxsugar.
the class TodayChargeAction method homeCharge.
@AuthChecker
@RequestMapping("/dhomeCharge")
public AgentResponse homeCharge(String start, String end) {
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
HttpServletRequest request = attributes.getRequest();
long agentId = AgentUtil.getAgentByRequest(request);
Date startDate = DateUtil.convertDay2Date(start);
Date endDate = DateUtil.convertDay2Date(end);
HomeChargeVo homeChargeVo = todayChargeService.showCharge(startDate, endDate, agentId);
Map<String, Object> result = new HashMap<>();
result.put("result", homeChargeVo);
AgentResponse agentResponse = new AgentResponse(200, result);
return agentResponse;
}
use of com.code.server.login.anotation.AuthChecker in project summer by foxsugar.
the class TodayChargeAction method showTodayThreeLevelChargeList.
@AuthChecker
// 二级代理充值记录
@RequestMapping("/level3Charges")
public AgentResponse showTodayThreeLevelChargeList() {
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
HttpServletRequest request = attributes.getRequest();
long agentId = AgentUtil.getAgentByRequest(request);
ThreeLevelVo threeLevelVo = todayChargeService.threeLevelCharges(agentId);
Map<String, Object> result = new HashMap<>();
result.put("result", threeLevelVo);
AgentResponse agentResponse = new AgentResponse(200, result);
return agentResponse;
}
use of com.code.server.login.anotation.AuthChecker in project summer by foxsugar.
the class TodayChargeAction method showTodayTwoLevelChargeList.
@AuthChecker
// 二级代理充值记录
@RequestMapping("/level2Charges")
public AgentResponse showTodayTwoLevelChargeList() {
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
HttpServletRequest request = attributes.getRequest();
long agentId = AgentUtil.getAgentByRequest(request);
Map<String, Object> result = new HashMap<>();
TwoLevelVo twoLevelVo = todayChargeService.twoLevelCharges(agentId);
result.put("result", twoLevelVo);
AgentResponse agentResponse = new AgentResponse(200, result);
return agentResponse;
}
Aggregations