Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
custom-server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhonghong
custom-server
Commits
d883be3f
Commit
d883be3f
authored
Jul 31, 2026
by
Lizh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i增加重复提交验证,防止重复提交
parent
170ca53c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
custom-server-webapp/src/main/java/com/jomalls/custom/webapp/controller/product/CustomProductInfoController.java
+2
-0
No files found.
custom-server-webapp/src/main/java/com/jomalls/custom/webapp/controller/product/CustomProductInfoController.java
View file @
d883be3f
package
com
.
jomalls
.
custom
.
webapp
.
controller
.
product
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jomalls.custom.app.annotation.RepeatSubmit
;
import
com.jomalls.custom.app.dto.product.*
;
import
com.jomalls.custom.app.enums.CustomProductInfoStatusEnum
;
import
com.jomalls.custom.app.service.product.CustomProductInfoService
;
...
...
@@ -36,6 +37,7 @@ public class CustomProductInfoController {
private
final
CustomProductInfoService
customProductInfoService
;
@Operation
(
summary
=
"创建商品"
,
description
=
"创建商品"
)
@RepeatSubmit
(
message
=
"请勿重复提交"
)
@PostMapping
(
"/create"
)
public
void
create
(
@RequestBody
@Valid
CustomProductInfoSaveSnakeDTO
dto
)
{
customProductInfoService
.
saveFull
(
dto
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment