| Line 3... |
Line 3... |
| 3 |
import java.util.ArrayList;
|
3 |
import java.util.ArrayList;
|
| 4 |
import java.util.List;
|
4 |
import java.util.List;
|
| 5 |
import java.util.Map;
|
5 |
import java.util.Map;
|
| 6 |
|
6 |
|
| 7 |
import javax.servlet.http.HttpServletRequest;
|
7 |
import javax.servlet.http.HttpServletRequest;
|
| 8 |
|
- |
|
| 9 |
import org.apache.thrift.TException;
|
8 |
import org.apache.thrift.TException;
|
| 10 |
import org.apache.thrift.transport.TTransportException;
|
9 |
import org.apache.thrift.transport.TTransportException;
|
| 11 |
import org.slf4j.Logger;
|
10 |
import org.apache.logging.log4j.Logger;
|
| 12 |
import org.slf4j.LoggerFactory;
|
11 |
import org.apache.logging.log4j.LogManager;
|
| 13 |
import org.springframework.beans.factory.annotation.Autowired;
|
12 |
import org.springframework.beans.factory.annotation.Autowired;
|
| 14 |
import org.springframework.http.MediaType;
|
13 |
import org.springframework.http.MediaType;
|
| 15 |
import org.springframework.http.ResponseEntity;
|
14 |
import org.springframework.http.ResponseEntity;
|
| 16 |
import org.springframework.stereotype.Controller;
|
15 |
import org.springframework.stereotype.Controller;
|
| 17 |
import org.springframework.transaction.annotation.Transactional;
|
16 |
import org.springframework.transaction.annotation.Transactional;
|
| Line 35... |
Line 34... |
| 35 |
import com.spice.profitmandi.web.req.CreateRechargeRequest;
|
34 |
import com.spice.profitmandi.web.req.CreateRechargeRequest;
|
| 36 |
import com.spice.profitmandi.web.res.ConfirmRechargeResponse;
|
35 |
import com.spice.profitmandi.web.res.ConfirmRechargeResponse;
|
| 37 |
import com.spice.profitmandi.web.res.CreateRechargeResponse;
|
36 |
import com.spice.profitmandi.web.res.CreateRechargeResponse;
|
| 38 |
import com.spice.profitmandi.web.res.MyRechargesResponse;
|
37 |
import com.spice.profitmandi.web.res.MyRechargesResponse;
|
| 39 |
import com.spice.profitmandi.web.res.RechargeResultPojo;
|
38 |
import com.spice.profitmandi.web.res.RechargeResultPojo;
|
| 40 |
|
- |
|
| 41 |
import in.shop2020.model.v1.order.DenominationType;
|
39 |
import in.shop2020.model.v1.order.DenominationType;
|
| 42 |
import in.shop2020.model.v1.order.DeviceNumberInfo;
|
40 |
import in.shop2020.model.v1.order.DeviceNumberInfo;
|
| 43 |
import in.shop2020.model.v1.order.OrderType;
|
41 |
import in.shop2020.model.v1.order.OrderType;
|
| 44 |
import in.shop2020.model.v1.order.RechargeDenomination;
|
42 |
import in.shop2020.model.v1.order.RechargeDenomination;
|
| 45 |
import in.shop2020.model.v1.order.RechargeOrder;
|
43 |
import in.shop2020.model.v1.order.RechargeOrder;
|
| Line 56... |
Line 54... |
| 56 |
|
54 |
|
| 57 |
@Controller
|
55 |
@Controller
|
| 58 |
@Transactional(rollbackFor=Throwable.class)
|
56 |
@Transactional(rollbackFor=Throwable.class)
|
| 59 |
public class RechargeController {
|
57 |
public class RechargeController {
|
| 60 |
|
58 |
|
| 61 |
private static final Logger log=LoggerFactory.getLogger(RechargeController.class);
|
59 |
private static final Logger log=LogManager.getLogger(RechargeController.class);
|
| 62 |
private static final String HEADER_X_FORWARDED_FOR = "X-FORWARDED-FOR";
|
60 |
private static final String HEADER_X_FORWARDED_FOR = "X-FORWARDED-FOR";
|
| 63 |
private static final String X_REAL_IP = "X-Real-IP";
|
61 |
private static final String X_REAL_IP = "X-Real-IP";
|
| 64 |
|
62 |
|
| 65 |
@Autowired
|
63 |
@Autowired
|
| 66 |
private UserAccountRepository userAccountRepository;
|
64 |
private UserAccountRepository userAccountRepository;
|