Subversion Repositories SmartDukaan

Rev

Rev 21394 | Rev 21472 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21394 Rev 21440
Line 21... Line 21...
21
import com.spice.profitmandi.dao.repository.UserRepository;
21
import com.spice.profitmandi.dao.repository.UserRepository;
22
import com.spice.profitmandi.web.model.ProfitMandiResponse;
22
import com.spice.profitmandi.web.model.ProfitMandiResponse;
23
import com.spice.profitmandi.web.model.ResponseStatus;
23
import com.spice.profitmandi.web.model.ResponseStatus;
24
import com.spice.profitmandi.web.processor.OtpProcessor;
24
import com.spice.profitmandi.web.processor.OtpProcessor;
25
import com.spice.profitmandi.web.res.OTPResponse;
25
import com.spice.profitmandi.web.res.OTPResponse;
-
 
26
import com.spice.profitmandi.web.util.ResponseSender;
26
 
27
 
27
import io.swagger.annotations.ApiImplicitParam;
28
import io.swagger.annotations.ApiImplicitParam;
28
import io.swagger.annotations.ApiImplicitParams;
29
import io.swagger.annotations.ApiImplicitParams;
29
import io.swagger.annotations.ApiOperation;
30
import io.swagger.annotations.ApiOperation;
30
 
31
 
31
@Controller
32
@Controller
32
public class OTPController {
33
public class OTPController {
33
 
34
 
34
	private static final Logger logger=LoggerFactory.getLogger(OTPController.class);
35
	private static final Logger logger=LoggerFactory.getLogger(OTPController.class);
-
 
36
	
-
 
37
	@Autowired
-
 
38
	ResponseSender<?> responseSender;
-
 
39
	
35
	@Autowired
40
	@Autowired
36
	OtpRepository otpRepositoty;
41
	OtpRepository otpRepositoty;
37
	@Autowired
42
	@Autowired
38
	UserRepository userRepositoty;
43
	UserRepository userRepositoty;
39
	@Autowired
44
	@Autowired
Line 106... Line 111...
106
		}
111
		}
107
	}
112
	}
108
	@ApiOperation(value = "Parse OTP")
113
	@ApiOperation(value = "Parse OTP")
109
	@RequestMapping(value = ProfitMandiConstants.URL_PARSE_OTP, method=RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE)
114
	@RequestMapping(value = ProfitMandiConstants.URL_PARSE_OTP, method=RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE)
110
	public ResponseEntity<?> parseOTP (@RequestParam("message") String message) {
115
	public ResponseEntity<?> parseOTP (@RequestParam("message") String message) {
111
		final ProfitMandiResponse<?> profitMandiResponse=new ProfitMandiResponse<>(ProfitMandiConstants.URL_PARSE_OTP, "322332");
-
 
112
		return new ResponseEntity<>(profitMandiResponse, HttpStatus.OK);
116
		return responseSender.ok("3334343");
113
	}
117
	}
114
 
118
 
115
 
119
 
116
}
120
}