Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
V
volunteer_service
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
licc
volunteer_service
Commits
18d38595
Commit
18d38595
authored
Jan 28, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用户扣减解口
parent
a953f10f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
5 deletions
+33
-5
MinusLimitVo.java
...del/src/main/java/cn/wisenergy/model/vo/MinusLimitVo.java
+27
-0
UserLimitController.java
...senergy/web/admin/controller/app/UserLimitController.java
+6
-5
No files found.
wisenergy-model/src/main/java/cn/wisenergy/model/vo/MinusLimitVo.java
0 → 100644
View file @
18d38595
package
cn
.
wisenergy
.
model
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @author 86187
* @ Description: 查询次数扣减Vo
* @ Author : 86187
* @ Date : 2021/1/28 17:06
*/
@Data
@ApiModel
(
"MinusLimitVo"
)
public
class
MinusLimitVo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
8276489379012215568L
;
/**
* 用户id
*/
@ApiModelProperty
(
value
=
"用户id"
,
name
=
"userId"
)
private
Integer
userId
;
}
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/UserLimitController.java
View file @
18d38595
...
@@ -3,6 +3,7 @@ package cn.wisenergy.web.admin.controller.app;
...
@@ -3,6 +3,7 @@ package cn.wisenergy.web.admin.controller.app;
import
cn.wisenergy.common.utils.R
;
import
cn.wisenergy.common.utils.R
;
import
cn.wisenergy.model.app.UserLimit
;
import
cn.wisenergy.model.app.UserLimit
;
import
cn.wisenergy.model.vo.AddLimitVo
;
import
cn.wisenergy.model.vo.AddLimitVo
;
import
cn.wisenergy.model.vo.MinusLimitVo
;
import
cn.wisenergy.service.app.UserLimitService
;
import
cn.wisenergy.service.app.UserLimitService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParam
;
...
@@ -52,15 +53,15 @@ public class UserLimitController {
...
@@ -52,15 +53,15 @@ public class UserLimitController {
@ApiOperation
(
value
=
"扣减用户查询次数"
,
notes
=
"扣减用户查询次数"
,
httpMethod
=
"POST"
)
@ApiOperation
(
value
=
"扣减用户查询次数"
,
notes
=
"扣减用户查询次数"
,
httpMethod
=
"POST"
)
@ApiImplicitParam
(
name
=
"
userId"
,
value
=
"用户id"
,
dataType
=
"int"
,
required
=
true
)
@ApiImplicitParam
(
name
=
"
minusLimitVo"
,
value
=
"用户id"
,
dataType
=
"MinusLimitVo"
)
@PostMapping
(
"/minusLimit"
)
@PostMapping
(
"/minusLimit"
)
public
R
<
Boolean
>
minusLimit
(
Integer
userId
)
{
public
R
<
Boolean
>
minusLimit
(
@RequestBody
MinusLimitVo
minusLimitVo
)
{
log
.
info
(
"volunteer-service[]UserLimitController[]minusLimit[]input.param.
userId:"
+
userId
);
log
.
info
(
"volunteer-service[]UserLimitController[]minusLimit[]input.param.
minusLimitVo:"
+
minusLimitVo
);
if
(
null
==
userId
)
{
if
(
null
==
minusLimitVo
||
null
==
minusLimitVo
.
getUserId
()
)
{
return
R
.
error
(
"入参为空!"
);
return
R
.
error
(
"入参为空!"
);
}
}
return
userLimitService
.
minusLimit
(
userId
);
return
userLimitService
.
minusLimit
(
minusLimitVo
.
getUserId
()
);
}
}
...
...
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