|
@@ -1,16 +1,12 @@
|
|
|
package com.llisoft.sms.controller.feign;
|
|
|
|
|
|
-import javax.validation.Valid;
|
|
|
-
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import com.llisoft.common.exception.MtaException;
|
|
|
import com.llisoft.sms.service.SmsService;
|
|
|
-import com.llisoft.sms.vo.CheckCodeRequestVo;
|
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -25,8 +21,8 @@ public class FeignSmsController {
|
|
|
|
|
|
@ApiOperation(value="核对验证码")
|
|
|
@PostMapping("/checkCode")
|
|
|
- public boolean checkCode(@Valid @RequestBody CheckCodeRequestVo vo) throws MtaException{
|
|
|
- return smsService.checkCode(vo.getPhone(), vo.getCode());
|
|
|
+ public boolean checkCode(String phone, String code) throws MtaException{
|
|
|
+ return smsService.checkCode(phone, code);
|
|
|
}
|
|
|
|
|
|
}
|