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
cf529457
Commit
cf529457
authored
Oct 15, 2024
by
zhangfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(member): 广告设置查询权限校验取消
parent
42f4cc34
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
BannerController.java
...dule/system/controller/admin/banner/BannerController.java
+3
-3
No files found.
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/banner/BannerController.java
View file @
cf529457
...
@@ -61,7 +61,7 @@ public class BannerController {
...
@@ -61,7 +61,7 @@ public class BannerController {
@GetMapping
(
"/get"
)
@GetMapping
(
"/get"
)
@ApiOperation
(
"获得广告设置"
)
@ApiOperation
(
"获得广告设置"
)
@ApiImplicitParam
(
name
=
"id"
,
value
=
"编号"
,
required
=
true
,
example
=
"1024"
,
dataTypeClass
=
Long
.
class
)
@ApiImplicitParam
(
name
=
"id"
,
value
=
"编号"
,
required
=
true
,
example
=
"1024"
,
dataTypeClass
=
Long
.
class
)
@PreAuthorize
(
"@ss.hasPermission('ecw:banner:query')"
)
//
@PreAuthorize("@ss.hasPermission('ecw:banner:query')")
public
CommonResult
<
BannerBackVO
>
getBanner
(
@RequestParam
(
"id"
)
Long
id
)
{
public
CommonResult
<
BannerBackVO
>
getBanner
(
@RequestParam
(
"id"
)
Long
id
)
{
BannerDO
banner
=
bannerService
.
getBanner
(
id
);
BannerDO
banner
=
bannerService
.
getBanner
(
id
);
return
success
(
BannerConvert
.
INSTANCE
.
convert
(
banner
));
return
success
(
BannerConvert
.
INSTANCE
.
convert
(
banner
));
...
@@ -70,7 +70,7 @@ public class BannerController {
...
@@ -70,7 +70,7 @@ public class BannerController {
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
@ApiOperation
(
"获得广告设置列表"
)
@ApiOperation
(
"获得广告设置列表"
)
@ApiImplicitParam
(
name
=
"ids"
,
value
=
"编号列表"
,
required
=
true
,
example
=
"1024,2048"
,
dataTypeClass
=
List
.
class
)
@ApiImplicitParam
(
name
=
"ids"
,
value
=
"编号列表"
,
required
=
true
,
example
=
"1024,2048"
,
dataTypeClass
=
List
.
class
)
@PreAuthorize
(
"@ss.hasPermission('ecw:banner:query')"
)
//
@PreAuthorize("@ss.hasPermission('ecw:banner:query')")
public
CommonResult
<
List
<
BannerBackVO
>>
getBannerList
(
@RequestParam
(
"ids"
)
Collection
<
Long
>
ids
)
{
public
CommonResult
<
List
<
BannerBackVO
>>
getBannerList
(
@RequestParam
(
"ids"
)
Collection
<
Long
>
ids
)
{
List
<
BannerDO
>
list
=
bannerService
.
getBannerList
(
ids
);
List
<
BannerDO
>
list
=
bannerService
.
getBannerList
(
ids
);
return
success
(
BannerConvert
.
INSTANCE
.
convertList
(
list
));
return
success
(
BannerConvert
.
INSTANCE
.
convertList
(
list
));
...
@@ -78,7 +78,7 @@ public class BannerController {
...
@@ -78,7 +78,7 @@ public class BannerController {
@GetMapping
(
"/page"
)
@GetMapping
(
"/page"
)
@ApiOperation
(
"获得广告设置分页"
)
@ApiOperation
(
"获得广告设置分页"
)
@PreAuthorize
(
"@ss.hasPermission('ecw:banner:query')"
)
//
@PreAuthorize("@ss.hasPermission('ecw:banner:query')")
public
CommonResult
<
PageResult
<
BannerBackVO
>>
getBannerPage
(
@Valid
BannerQueryVO
query
,
PageVO
page
)
{
public
CommonResult
<
PageResult
<
BannerBackVO
>>
getBannerPage
(
@Valid
BannerQueryVO
query
,
PageVO
page
)
{
PageResult
<
BannerDO
>
pageResult
=
bannerService
.
getBannerPage
(
query
,
page
);
PageResult
<
BannerDO
>
pageResult
=
bannerService
.
getBannerPage
(
query
,
page
);
return
success
(
BannerConvert
.
INSTANCE
.
convertPage
(
pageResult
));
return
success
(
BannerConvert
.
INSTANCE
.
convertPage
(
pageResult
));
...
...
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