| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | | import java.text.ParseException; |
| | |
| | | |
| | | @PostMapping("/buyInsurance") |
| | | @ApiOperation(value = "保险模块--购买保险") |
| | | public R<?> buyInsurance(@RequestBody BuyInsuranceDto dto) throws ParseException { |
| | | public R<?> buyInsurance(@RequestBody @Valid BuyInsuranceDto dto) throws ParseException { |
| | | String userId = tokenService.getLoginUserApplet().getUserId(); |
| | | TAppUser appUser = tAppUserService.getById(userId); |
| | | |