parent
95358bcbac
commit
ad8f036e3c
Binary file not shown.
@ -0,0 +1,6 @@
|
||||
package com.internal.util;
|
||||
|
||||
public class ApiPassengerConstant {
|
||||
//乘客验证码的前缀
|
||||
public final static String verificationCodePrefix = "passenger-verificatioin-code-";
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package com.internal.util;
|
||||
|
||||
public class Utils {
|
||||
|
||||
public static String getVerificationCodePrefixKey(String passenegerPhone){
|
||||
return ApiPassengerConstant.verificationCodePrefix + passenegerPhone;
|
||||
}
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
package com.spring.serviceverificationcode.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
public class TestController {
|
||||
|
||||
@GetMapping("/showTestStr")
|
||||
public String showTestStr(){
|
||||
return "success";
|
||||
}
|
||||
|
||||
@GetMapping("/test")
|
||||
public String test(){
|
||||
return "service-verificationcode";
|
||||
}
|
||||
}
|
Loading…
Reference in new issue