Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
ed0ae6b3
Commit
ed0ae6b3
authored
Jul 30, 2024
by
zhangfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
积分规则接口校验
parent
0612f246
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
129 additions
and
28 deletions
+129
-28
ErrorCodeConstants.java
...iocoder/yudao/module/member/enums/ErrorCodeConstants.java
+2
-1
ScoreRuleController.java
...ember/controller/admin/scoreRule/ScoreRuleController.java
+5
-6
ScoreRuleService.java
...dao/module/member/service/scoreRule/ScoreRuleService.java
+2
-2
ScoreRuleServiceImpl.java
...module/member/service/scoreRule/ScoreRuleServiceImpl.java
+118
-17
ScoreRuleBaseVO.java
...der/yudao/module/member/vo/scoreRule/ScoreRuleBaseVO.java
+1
-1
ScoreRuleShareExtraVO.java
...dule/member/vo/scoreRule/extra/ScoreRuleShareExtraVO.java
+1
-1
No files found.
yudao-module-member/yudao-module-member-api/src/main/java/cn/iocoder/yudao/module/member/enums/ErrorCodeConstants.java
View file @
ed0ae6b3
...
...
@@ -48,7 +48,8 @@ public interface ErrorCodeConstants {
ErrorCode
SCORE_RULE_NOT_EXISTS
=
new
ErrorCode
(
1004008004
,
"score.rule.not.exists"
);
ErrorCode
SCORE_RULE_DELETE_ERROR
=
new
ErrorCode
(
1004008005
,
"score.rule.delete.error"
);
ErrorCode
SCORE_RULE_UPDATE_ERROR
=
new
ErrorCode
(
1004008005
,
"score.rule.update.error"
);
ErrorCode
SCORE_RULE_UPDATE_ERROR
=
new
ErrorCode
(
1004008006
,
"score.rule.update.error"
);
ErrorCode
SCORE_RULE_FIELD_ERROR
=
new
ErrorCode
(
1004008007
,
"score.rule.field.error"
);
}
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/controller/admin/scoreRule/ScoreRuleController.java
View file @
ed0ae6b3
...
...
@@ -90,22 +90,21 @@ public class ScoreRuleController {
@ApiOperation
(
"启用关闭"
)
@PreAuthorize
(
"@ss.hasPermission('member:score-rule:update')"
)
public
CommonResult
<
Boolean
>
updateStatus
(
@Valid
@RequestBody
ScoreRuleStatusReqVO
scoreRuleStatusReqVO
)
{
Boolean
res
=
scoreRuleService
.
updateStatus
(
scoreRuleStatusReqVO
);
return
success
(
res
);
scoreRuleService
.
updateStatus
(
scoreRuleStatusReqVO
);
return
success
(
true
);
}
@PostMapping
(
"/copy"
)
@ApiOperation
(
"复制规则"
)
@PreAuthorize
(
"@ss.hasPermission('member:score-rule:create')"
)
public
CommonResult
<
Long
>
copyScoreRule
(
@NotNull
@RequestBody
Long
id
)
{
Long
newId
=
scoreRuleService
.
copyScoreRule
(
id
);
return
success
(
id
);
return
success
(
scoreRuleService
.
copyScoreRule
(
id
));
}
@PostMapping
(
"/delay"
)
@ApiOperation
(
"延期规则"
)
@PreAuthorize
(
"@ss.hasPermission('member:score-rule:update')"
)
public
CommonResult
<
Boolean
>
delayScoreRule
(
@Valid
@RequestBody
ScoreDelayReqVO
scoreDelayReqVO
)
{
Boolean
res
=
scoreRuleService
.
delayScoreRule
(
scoreDelayReqVO
);
return
success
(
res
);
scoreRuleService
.
delayScoreRule
(
scoreDelayReqVO
);
return
success
(
true
);
}
@GetMapping
(
"/export-excel"
)
...
...
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/service/scoreRule/ScoreRuleService.java
View file @
ed0ae6b3
...
...
@@ -72,7 +72,7 @@ public interface ScoreRuleService extends IService<ScoreRuleDO> {
* @param scoreRuleStatusReqVO 积分规则状态
* @return
*/
Boolean
updateStatus
(
ScoreRuleStatusReqVO
scoreRuleStatusReqVO
);
void
updateStatus
(
ScoreRuleStatusReqVO
scoreRuleStatusReqVO
);
/**
* 积分规则复制
...
...
@@ -86,5 +86,5 @@ public interface ScoreRuleService extends IService<ScoreRuleDO> {
* @param scoreDelayReqVO 积分规则延期
* @return
*/
Boolean
delayScoreRule
(
ScoreDelayReqVO
scoreDelayReqVO
);
void
delayScoreRule
(
ScoreDelayReqVO
scoreDelayReqVO
);
}
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/service/scoreRule/ScoreRuleServiceImpl.java
View file @
ed0ae6b3
This diff is collapsed.
Click to expand it.
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/vo/scoreRule/ScoreRuleBaseVO.java
View file @
ed0ae6b3
...
...
@@ -24,7 +24,7 @@ public class ScoreRuleBaseVO {
private
Integer
type
;
@ApiModelProperty
(
value
=
"规则标题中文"
,
required
=
true
)
@Not
Null
(
message
=
"规则标题中文不能为空"
)
@Not
Blank
(
message
=
"规则标题中文不能为空"
)
private
String
titleZh
;
@ApiModelProperty
(
value
=
"规则标题英文"
,
required
=
true
)
...
...
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/vo/scoreRule/extra/ScoreRuleShareExtraVO.java
View file @
ed0ae6b3
...
...
@@ -14,5 +14,5 @@ public class ScoreRuleShareExtraVO {
@ApiModelProperty
(
value
=
"活动链接"
,
required
=
true
)
private
String
activityUrl
;
@ApiModelProperty
(
value
=
"是否分享(0是,1否)默认是"
,
required
=
true
)
private
String
shareStatus
;
private
Integer
shareStatus
;
}
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