Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
ZhangKuan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
张宽
ZhangKuan
Commits
a26bfe44
Commit
a26bfe44
authored
Oct 15, 2016
by
胡小根
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coding
parent
ca9ec080
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
74 deletions
+0
-74
ActivitiController.java
...tudio/SeekTruthBackend/controller/ActivitiController.java
+0
-35
CountryController.java
...studio/SeekTruthBackend/controller/CountryController.java
+0
-39
No files found.
web/src/main/java/com/haomostudio/SeekTruthBackend/controller/ActivitiController.java
deleted
100644 → 0
View file @
ca9ec080
package
com
.
haomostudio
.
SeekTruthBackend
.
controller
;
import
com.haomostudio.SeekTruthBackend.service.ActivitiService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestHeader
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
javax.servlet.http.HttpServletResponse
;
/**
* Created by hxgqh on 2016/10/6.
*/
public
class
ActivitiController
{
@Autowired
ActivitiService
activitiService
;
@Autowired
HttpServletResponse
response
;
@RequestMapping
(
value
=
"/activities"
,
method
=
RequestMethod
.
GET
,
produces
=
"application/json;charset=UTF-8"
)
@ResponseBody
public
Object
getActivities
(
@RequestHeader
(
value
=
"X-Auth-Token"
)
String
token
,
@RequestHeader
(
value
=
"page_no"
)
Integer
pageNo
,
@RequestHeader
(
value
=
"page_size"
)
Integer
pageSize
,
@RequestHeader
(
value
=
"sort_item"
)
String
sortItem
,
@RequestHeader
(
value
=
"sort_order"
)
String
sortOrder
,
@RequestHeader
(
value
=
"filters"
)
String
filters
)
{
return
activitiService
.
getListWithPagingAndFilter
(
pageNo
,
pageSize
,
sortItem
,
sortOrder
,
filters
);
}
}
web/src/main/java/com/haomostudio/SeekTruthBackend/controller/CountryController.java
deleted
100644 → 0
View file @
ca9ec080
package
com
.
haomostudio
.
SeekTruthBackend
.
controller
;
import
com.haomostudio.SeekTruthBackend.service.ActivitiService
;
import
com.haomostudio.SeekTruthBackend.service.CountryService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestHeader
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
javax.servlet.http.HttpServletResponse
;
/**
* Created by hxgqh on 2016/10/6.
*/
@Controller
public
class
CountryController
{
@Autowired
CountryService
countryService
;
@Autowired
HttpServletResponse
response
;
@RequestMapping
(
value
=
"/countries"
,
method
=
RequestMethod
.
GET
,
produces
=
"application/json;charset=UTF-8"
)
@ResponseBody
public
Object
getCountries
(
@RequestHeader
(
value
=
"page_no"
)
Integer
pageNo
,
@RequestHeader
(
value
=
"page_size"
)
Integer
pageSize
,
@RequestHeader
(
value
=
"sort_item"
)
String
sortItem
,
@RequestHeader
(
value
=
"sort_order"
)
String
sortOrder
,
@RequestHeader
(
value
=
"filters"
)
String
filters
)
{
return
countryService
.
getListWithPagingAndFilter
(
pageNo
,
pageSize
,
sortItem
,
sortOrder
,
filters
);
}
}
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