Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
legobackend
/
lego-manage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f03bf6e0
authored
2025-03-09 10:40:13 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
1a4ee1c4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
lego-admin/src/main/java/com/lego/web/controller/core/BuildingBlockController.java
lego-admin/src/main/resources/i18n/messages_zh_CN.properties
lego-admin/src/main/java/com/lego/web/controller/core/BuildingBlockController.java
View file @
f03bf6e
...
...
@@ -16,6 +16,7 @@ import lombok.RequiredArgsConstructor;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.validation.Valid
;
import
java.rmi.ServerException
;
import
java.util.List
;
...
...
@@ -73,7 +74,7 @@ public class BuildingBlockController extends BaseController {
*/
@RepeatSubmit
()
@PostMapping
()
public
R
<
Void
>
addBlock
(
@RequestBody
BuildingBlockBo
blockBo
)
{
public
R
<
Void
>
addBlock
(
@RequestBody
@Valid
BuildingBlockBo
blockBo
)
{
return
toAjax
(
service
.
addBlock
(
blockBo
));
}
...
...
@@ -85,7 +86,7 @@ public class BuildingBlockController extends BaseController {
*/
@RepeatSubmit
()
@PutMapping
public
R
<
Void
>
update
(
@RequestBody
BuildingBlockBo
blockBo
)
throws
ServerException
{
public
R
<
Void
>
update
(
@RequestBody
@Valid
BuildingBlockBo
blockBo
)
throws
ServerException
{
return
toAjax
(
service
.
updateBlock
(
blockBo
));
}
...
...
lego-admin/src/main/resources/i18n/messages_zh_CN.properties
View file @
f03bf6e
...
...
@@ -52,5 +52,5 @@ email.code.retry.limit.exceed=邮箱验证码输入错误{0}次,帐户锁定{1
xcx.code.not.blank
=
小程序code不能为空
##业务
core.data.not.exists
=
数据不存在
core.data.exists
=
数据存在
core.data.exists
=
关联
数据存在
core.advert.status.fail
=
广告状态不存在
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment