Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1-office-web-sit
Commits
1c3bfaaf
Commit
1c3bfaaf
authored
Nov 07, 2021
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】前端页面接口
parent
2057f79e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
0 deletions
+53
-0
ShiroConfig.java
src/main/java/io/office/config/ShiroConfig.java
+2
-0
IndexCarouselManageController.java
...ules/manage/controller/IndexCarouselManageController.java
+26
-0
PictureController.java
...o/office/modules/manage/controller/PictureController.java
+25
-0
No files found.
src/main/java/io/office/config/ShiroConfig.java
View file @
1c3bfaaf
...
...
@@ -60,6 +60,8 @@ public class ShiroConfig {
filterMap
.
put
(
"/swagger-resources/**"
,
"anon"
);
filterMap
.
put
(
"/captcha.jpg"
,
"anon"
);
filterMap
.
put
(
"/aaa.txt"
,
"anon"
);
//不需要登录的接口
filterMap
.
put
(
"/*/api/**"
,
"anon"
);
filterMap
.
put
(
"/**"
,
"oauth2"
);
shiroFilter
.
setFilterChainDefinitionMap
(
filterMap
);
...
...
src/main/java/io/office/modules/manage/controller/IndexCarouselManageController.java
View file @
1c3bfaaf
package
io
.
office
.
modules
.
manage
.
controller
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.R
;
...
...
@@ -113,4 +115,28 @@ public class IndexCarouselManageController extends AbstractController {
}
}
@PostMapping
(
"/api/bigImages"
)
// @RequiresPermissions("generator:indexcarouselmanage:bigImages")
public
R
bigImages
()
{
try
{
QueryWrapper
<
IndexCarouselManageEntity
>
newsEntityQueryWrapper
=
new
QueryWrapper
<>();
newsEntityQueryWrapper
.
eq
(
"classnum"
,
"大轮播"
);
newsEntityQueryWrapper
.
eq
(
"checkflag_index"
,
"1"
);
newsEntityQueryWrapper
.
gt
(
"levels"
,
"0"
);
newsEntityQueryWrapper
.
orderByDesc
(
"levels_index"
);
List
<
IndexCarouselManageEntity
>
list
=
indexCarouselManageService
.
list
(
newsEntityQueryWrapper
);
return
R
.
ok
().
put
(
"data"
,
list
);
}
catch
(
Exception
e
)
{
log
.
error
(
"verifyIndexCarouselManage error:"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
}
src/main/java/io/office/modules/manage/controller/PictureController.java
View file @
1c3bfaaf
...
...
@@ -4,9 +4,11 @@ import java.util.Arrays;
import
java.util.List
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.R
;
import
io.office.modules.manage.entity.IndexCarouselManageEntity
;
import
io.office.modules.manage.entity.NewsEntity
;
import
io.office.modules.manage.entity.PictureEntity
;
import
io.office.modules.manage.entity.dto.PictureParams
;
...
...
@@ -115,4 +117,27 @@ public class PictureController extends AbstractController {
}
}
@PostMapping
(
"/api/pictureImageList"
)
// @RequiresPermissions("generator:indexcarouselmanage:pictureImageList")
public
R
bigImages
()
{
try
{
QueryWrapper
<
PictureEntity
>
newsEntityQueryWrapper
=
new
QueryWrapper
<>();
newsEntityQueryWrapper
.
select
(
"TOP 3 *"
);
newsEntityQueryWrapper
.
eq
(
"status"
,
"1"
);
newsEntityQueryWrapper
.
gt
(
"PicLevel"
,
"0"
);
newsEntityQueryWrapper
.
orderByDesc
(
"PicLevel"
);
newsEntityQueryWrapper
.
orderByDesc
(
"showtime"
);
newsEntityQueryWrapper
.
orderByDesc
(
"inputDate"
);
newsEntityQueryWrapper
.
orderByDesc
(
"pictureID"
);
List
<
PictureEntity
>
list
=
pictureService
.
list
(
newsEntityQueryWrapper
);
return
R
.
ok
().
put
(
"data"
,
list
);
}
catch
(
Exception
e
)
{
log
.
error
(
"verifyIndexCarouselManage error:"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
}
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