| | |
| | | package com.ks.consumerjdgiftcoupon.controller; |
| | | |
| | | import com.ks.consumerjdgiftcoupon.query.TestQuery; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.validation.BindingResult; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | import javax.validation.Valid; |
| | | |
| | | @Api(tags = "测试数据接口") |
| | | @Controller |
| | | @RequestMapping("test") |
| | | public class TestController { |
| | | |
| | | @ApiOperation(value = "测试", notes = "测试字段验证") |
| | | @RequestMapping("valid") |
| | | @ResponseBody |
| | | public String valid(@Valid TestQuery query, BindingResult bindingResult) { |