no message
Showing
2 changed files
with
4 additions
and
3 deletions
| ... | @@ -16,6 +16,7 @@ import lombok.RequiredArgsConstructor; | ... | @@ -16,6 +16,7 @@ import lombok.RequiredArgsConstructor; |
| 16 | import org.springframework.web.bind.annotation.*; | 16 | import org.springframework.web.bind.annotation.*; |
| 17 | 17 | ||
| 18 | import javax.servlet.http.HttpServletRequest; | 18 | import javax.servlet.http.HttpServletRequest; |
| 19 | import javax.validation.Valid; | ||
| 19 | import java.rmi.ServerException; | 20 | import java.rmi.ServerException; |
| 20 | import java.util.List; | 21 | import java.util.List; |
| 21 | 22 | ||
| ... | @@ -73,7 +74,7 @@ public class BuildingBlockController extends BaseController { | ... | @@ -73,7 +74,7 @@ public class BuildingBlockController extends BaseController { |
| 73 | */ | 74 | */ |
| 74 | @RepeatSubmit() | 75 | @RepeatSubmit() |
| 75 | @PostMapping() | 76 | @PostMapping() |
| 76 | public R<Void> addBlock(@RequestBody BuildingBlockBo blockBo) { | 77 | public R<Void> addBlock(@RequestBody @Valid BuildingBlockBo blockBo) { |
| 77 | return toAjax(service.addBlock(blockBo)); | 78 | return toAjax(service.addBlock(blockBo)); |
| 78 | } | 79 | } |
| 79 | 80 | ||
| ... | @@ -85,7 +86,7 @@ public class BuildingBlockController extends BaseController { | ... | @@ -85,7 +86,7 @@ public class BuildingBlockController extends BaseController { |
| 85 | */ | 86 | */ |
| 86 | @RepeatSubmit() | 87 | @RepeatSubmit() |
| 87 | @PutMapping | 88 | @PutMapping |
| 88 | public R<Void> update(@RequestBody BuildingBlockBo blockBo) throws ServerException { | 89 | public R<Void> update(@RequestBody @Valid BuildingBlockBo blockBo) throws ServerException { |
| 89 | return toAjax(service.updateBlock(blockBo)); | 90 | return toAjax(service.updateBlock(blockBo)); |
| 90 | } | 91 | } |
| 91 | 92 | ... | ... |
| ... | @@ -52,5 +52,5 @@ email.code.retry.limit.exceed=邮箱验证码输入错误{0}次,帐户锁定{1 | ... | @@ -52,5 +52,5 @@ email.code.retry.limit.exceed=邮箱验证码输入错误{0}次,帐户锁定{1 |
| 52 | xcx.code.not.blank=小程序code不能为空 | 52 | xcx.code.not.blank=小程序code不能为空 |
| 53 | ##业务 | 53 | ##业务 |
| 54 | core.data.not.exists=数据不存在 | 54 | core.data.not.exists=数据不存在 |
| 55 | core.data.exists=数据存在 | 55 | core.data.exists=关联数据存在 |
| 56 | core.advert.status.fail=广告状态不存在 | 56 | core.advert.status.fail=广告状态不存在 | ... | ... |
-
Please register or sign in to post a comment