Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
safe-campus-bbs
Project overview
Project overview
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
万成波
safe-campus-bbs
Commits
0da34a14
Commit
0da34a14
authored
Sep 09, 2025
by
万成波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品查询
parent
effcab0d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
safe-campus-points/src/main/java/com/tangguo/controller/BbsPointsGoodsController.java
...java/com/tangguo/controller/BbsPointsGoodsController.java
+5
-3
No files found.
safe-campus-points/src/main/java/com/tangguo/controller/BbsPointsGoodsController.java
View file @
0da34a14
package
com
.
tangguo
.
controller
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.tangguo.common.annotation.Log
;
import
com.tangguo.common.core.controller.BaseController
;
import
com.tangguo.common.core.domain.AjaxResult
;
...
...
@@ -47,9 +48,10 @@ public class BbsPointsGoodsController extends BaseController {
*/
@ApiOperation
(
"获取积分商品详细信息"
)
@PreAuthorize
(
"@ss.hasPermi('goods:goods:query')"
)
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
bbsPointsGoodsService
.
getById
(
id
));
@GetMapping
(
value
=
"/{code}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"code"
)
String
code
)
{
BbsPointsGoods
dbGoods
=
this
.
bbsPointsGoodsService
.
getByGoodsCode
(
code
);
return
success
(
bbsPointsGoodsService
.
getById
(
dbGoods
));
}
...
...
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