| Line 7... |
Line 7... |
| 7 |
import org.springframework.beans.factory.annotation.Autowired;
|
7 |
import org.springframework.beans.factory.annotation.Autowired;
|
| 8 |
import org.springframework.http.HttpStatus;
|
8 |
import org.springframework.http.HttpStatus;
|
| 9 |
import org.springframework.http.MediaType;
|
9 |
import org.springframework.http.MediaType;
|
| 10 |
import org.springframework.http.ResponseEntity;
|
10 |
import org.springframework.http.ResponseEntity;
|
| 11 |
import org.springframework.stereotype.Controller;
|
11 |
import org.springframework.stereotype.Controller;
|
| 12 |
import org.springframework.web.bind.annotation.RequestBody;
|
12 |
import org.springframework.transaction.annotation.Transactional;
|
| 13 |
import org.springframework.web.bind.annotation.RequestMapping;
|
13 |
import org.springframework.web.bind.annotation.RequestMapping;
|
| 14 |
import org.springframework.web.bind.annotation.RequestMethod;
|
14 |
import org.springframework.web.bind.annotation.RequestMethod;
|
| 15 |
import org.springframework.web.bind.annotation.RequestParam;
|
15 |
import org.springframework.web.bind.annotation.RequestParam;
|
| 16 |
|
16 |
|
| 17 |
import com.spice.profitmandi.common.ResponseCodeHolder;
|
- |
|
| 18 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
17 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 19 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
18 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
| 20 |
import com.spice.profitmandi.common.util.StringUtils;
|
19 |
import com.spice.profitmandi.common.util.StringUtils;
|
| 21 |
import com.spice.profitmandi.dao.enumuration.OtpType;
|
20 |
import com.spice.profitmandi.dao.enumuration.OtpType;
|
| 22 |
import com.spice.profitmandi.dao.repository.OtpRepository;
|
21 |
import com.spice.profitmandi.dao.repository.OtpRepository;
|
| Line 30... |
Line 29... |
| 30 |
import io.swagger.annotations.ApiImplicitParam;
|
29 |
import io.swagger.annotations.ApiImplicitParam;
|
| 31 |
import io.swagger.annotations.ApiImplicitParams;
|
30 |
import io.swagger.annotations.ApiImplicitParams;
|
| 32 |
import io.swagger.annotations.ApiOperation;
|
31 |
import io.swagger.annotations.ApiOperation;
|
| 33 |
|
32 |
|
| 34 |
@Controller
|
33 |
@Controller
|
| - |
|
34 |
@Transactional
|
| 35 |
public class OTPController {
|
35 |
public class OTPController {
|
| 36 |
|
36 |
|
| 37 |
private static final Logger logger=LoggerFactory.getLogger(OTPController.class);
|
37 |
private static final Logger logger=LoggerFactory.getLogger(OTPController.class);
|
| 38 |
|
38 |
|
| 39 |
@Autowired
|
39 |
@Autowired
|