Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-web
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
hqzhdj
cloud-web
Commits
fce9933f
Commit
fce9933f
authored
Oct 13, 2025
by
“Kongxiangkun”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加积分商城相关代码
parent
3574c578
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
9 deletions
+20
-9
cloud-web-manage/src/main/java/com/yizhi/application/point/controller/PointProductController.java
+8
-6
cloud-web-manage/src/main/java/com/yizhi/application/point/controller/PointUserController.java
+12
-3
No files found.
cloud-web-manage/src/main/java/com/yizhi/application/point/controller/PointProductController.java
View file @
fce9933f
...
...
@@ -138,12 +138,14 @@ public class PointProductController {
@ApiOperation
(
value
=
"积分商品、分页列表"
,
notes
=
"积分商品、分页列表"
,
response
=
PointProductVo
.
class
)
@GetMapping
(
"/list"
)
public
Response
<
Page
<
PointProductVo
>>
productList
(
@RequestBody
PointSearchParamVO
searchParamVO
){
Page
<
PointProductVo
>
list
=
null
;
RequestContext
requestContext
=
ContextHolder
.
get
();
if
(
null
==
requestContext
){
Response
.
fail
();
}
//public Response<Page<PointProductVo>> productList(@RequestBody PointSearchParamVO searchParamVO){
public
Response
<
Page
<
PointProductVo
>>
productList
(
@RequestParam
(
value
=
"pageNo"
,
required
=
false
)
int
pageNo
,
@RequestParam
(
value
=
"pageSize"
,
required
=
false
)
int
pageSize
,
@RequestParam
(
value
=
"name"
,
required
=
false
)
String
name
){
PointSearchParamVO
searchParamVO
=
new
PointSearchParamVO
();
searchParamVO
.
setName
(
name
);
searchParamVO
.
setPageNo
(
pageNo
);
searchParamVO
.
setPageSize
(
pageSize
);
try
{
return
Response
.
ok
(
pointProductFeignClients
.
productList
(
searchParamVO
));
}
catch
(
Exception
e
)
{
...
...
cloud-web-manage/src/main/java/com/yizhi/application/point/controller/PointUserController.java
View file @
fce9933f
...
...
@@ -167,8 +167,14 @@ public class PointUserController {
@ApiOperation
(
value
=
"用户的积分分页列表"
,
notes
=
"用户的积分分页列表"
,
response
=
PointProductVo
.
class
)
@GetMapping
(
"/list"
)
public
Response
<
Page
<
PointUserPageListVO
>>
list
(
@RequestBody
PointSearchParamVO
searchParamVO
){
Page
<
PointUserListVO
>
list
=
null
;
//public Response<Page<PointUserPageListVO>> list(@RequestBody PointSearchParamVO searchParamVO){
public
Response
<
Page
<
PointUserPageListVO
>>
list
(
@RequestParam
(
value
=
"pageNo"
,
required
=
false
)
int
pageNo
,
@RequestParam
(
value
=
"pageSize"
,
required
=
false
)
int
pageSize
,
@RequestParam
(
value
=
"name"
,
required
=
false
)
String
name
){
PointSearchParamVO
searchParamVO
=
new
PointSearchParamVO
();
searchParamVO
.
setName
(
name
);
searchParamVO
.
setPageNo
(
pageNo
);
searchParamVO
.
setPageSize
(
pageSize
);
try
{
return
Response
.
ok
(
pointUserClients
.
list
(
searchParamVO
));
}
catch
(
Exception
e
)
{
...
...
@@ -178,8 +184,11 @@ public class PointUserController {
}
@ApiOperation
(
value
=
"用户积分兑换"
,
notes
=
"用户积分兑换"
,
response
=
PointProductVo
.
class
)
@
Ge
tMapping
(
"/exchange"
)
@
Pos
tMapping
(
"/exchange"
)
public
Response
<
Object
>
exchange
(
@RequestBody
PointUserExchangeVO
pointUserExchangeVO
){
if
(
pointUserExchangeVO
.
getPoint
()
<=
0
)
{
return
Response
.
fail
(
"兑换积分必须大于0"
);
}
int
ret
=
pointUserClients
.
exchange
(
pointUserExchangeVO
);
if
(
ret
>
0
)
{
return
Response
.
ok
();
...
...
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