Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
store-system
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
luoyangfei
store-system
Commits
eb9406ce
Commit
eb9406ce
authored
Nov 07, 2018
by
扫地僧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
H5首页数据接口服务类
parent
920dcc33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
IndexController.java
...main/java/cn/com/fqy/controller/mapi/IndexController.java
+38
-0
No files found.
2code/server/store-system/src/main/java/cn/com/fqy/controller/mapi/IndexController.java
0 → 100644
View file @
eb9406ce
package
cn
.
com
.
fqy
.
controller
.
mapi
;
import
javax.annotation.Resource
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.ModelAttribute
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
cn.com.fqy.core.common.PageFinder
;
import
cn.com.fqy.core.model.Advert
;
import
cn.com.fqy.core.model.Query
;
import
cn.com.fqy.core.service.AdvertService
;
@Controller
@RequestMapping
(
"/h5/index"
)
public
class
IndexController
{
@Resource
private
AdvertService
advertService
;
@RequestMapping
(
"fqy"
)
@ResponseBody
public
String
fqy
(){
return
"fqy"
;
}
/**
* 分页展示广告
*/
@RequestMapping
(
"getAdvertList"
)
@ResponseBody
public
PageFinder
<
Advert
>
getAdvertList
(
@ModelAttribute
(
"advert"
)
Advert
advert
,
Query
query
)
{
Query
q
=
new
Query
(
query
.
getPageNo
(),
query
.
getPageSize
(),
advert
);
return
advertService
.
getAdvertPagedList
(
q
);
}
}
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