Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
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
youjj
cloud-platform
Commits
8efef1ad
Commit
8efef1ad
authored
Sep 07, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
seo后台列表
parent
eea4a63e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
4 deletions
+41
-4
SEOBiz.java
...rver/src/main/java/com/xxfc/platform/uccn/biz/SEOBiz.java
+7
-1
SEOController.java
.../main/java/com/xxfc/platform/uccn/rest/SEOController.java
+29
-0
SEOBackgroundController.java
...xfc/platform/uccn/rest/admin/SEOBackgroundController.java
+5
-3
No files found.
xx-uccn/xx-uccn-server/src/main/java/com/xxfc/platform/uccn/biz/SEOB
ackgroundB
iz.java
→
xx-uccn/xx-uccn-server/src/main/java/com/xxfc/platform/uccn/biz/SEOBiz.java
View file @
8efef1ad
...
...
@@ -20,7 +20,7 @@ import java.util.List;
* @author Administrator
*/
@Service
public
class
SEOB
ackgroundB
iz
extends
BaseBiz
<
SEOMapper
,
SEO
>
{
public
class
SEOBiz
extends
BaseBiz
<
SEOMapper
,
SEO
>
{
public
PageInfo
<
SeoDTO
>
getList
(
SEOQuery
query
)
{
PageHelper
.
startPage
(
query
.
getPage
(),
query
.
getLimit
());
List
<
SeoDTO
>
seodtoList
=
mapper
.
getSEODTOList
();
...
...
@@ -52,4 +52,10 @@ public class SEOBackgroundBiz extends BaseBiz<SEOMapper, SEO> {
return
false
;
}
}
public
SEO
getSeoByModelId
(
Integer
modelId
)
{
SEO
seo
=
new
SEO
();
seo
.
setModelId
(
modelId
);
return
selectOne
(
seo
);
}
}
xx-uccn/xx-uccn-server/src/main/java/com/xxfc/platform/uccn/rest/SEOController.java
0 → 100644
View file @
8efef1ad
package
com
.
xxfc
.
platform
.
uccn
.
rest
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.xxfc.platform.uccn.biz.SEOBiz
;
import
com.xxfc.platform.uccn.entity.SEO
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @author Administrator
*/
@RestController
@RequestMapping
(
"seo"
)
@Api
(
tags
={
"seo后台管理类"
})
public
class
SEOController
extends
BaseController
<
SEOBiz
,
SEO
>
{
@GetMapping
(
"officialWebsite/{modelId}"
)
@ApiOperation
(
value
=
"获取官网seo"
)
public
ObjectRestResponse
getSeoByModelId
(
@PathVariable
Integer
modelId
){
return
ObjectRestResponse
.
succ
(
baseBiz
.
getSeoByModelId
(
modelId
));
}
}
\ No newline at end of file
xx-uccn/xx-uccn-server/src/main/java/com/xxfc/platform/uccn/rest/admin/SEOBackgroundController.java
View file @
8efef1ad
...
...
@@ -2,7 +2,7 @@ package com.xxfc.platform.uccn.rest.admin;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.xxfc.platform.uccn.biz.SEOB
ackgroundB
iz
;
import
com.xxfc.platform.uccn.biz.SEOBiz
;
import
com.xxfc.platform.uccn.entity.SEO
;
import
com.xxfc.platform.uccn.vo.SEOQuery
;
import
com.xxfc.platform.uccn.vo.SEOVo
;
...
...
@@ -14,9 +14,9 @@ import org.springframework.web.bind.annotation.*;
* @author Administrator
*/
@RestController
@RequestMapping
(
"seo"
)
@RequestMapping
(
"seo
Background
"
)
@Api
(
tags
={
"seo后台管理类"
})
public
class
SEOBackgroundController
extends
BaseController
<
SEOB
ackgroundB
iz
,
SEO
>
{
public
class
SEOBackgroundController
extends
BaseController
<
SEOBiz
,
SEO
>
{
@PostMapping
(
"/list"
)
@ApiOperation
(
value
=
"查询模块列表"
)
...
...
@@ -33,4 +33,6 @@ public class SEOBackgroundController extends BaseController<SEOBackgroundBiz, SE
}
return
ObjectRestResponse
.
createDefaultFail
()
;
}
}
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