Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-web
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
cloud-web
Commits
d4ecf175
Commit
d4ecf175
authored
Dec 17, 2024
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
投稿审批通过和不通过接口
parent
518bb294
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
11 deletions
+25
-11
cloud-web-manage/src/main/java/com/yizhi/application/portal/controller/SitePublicationManageController.java
+25
-11
No files found.
cloud-web-manage/src/main/java/com/yizhi/application/portal/controller/SitePublicationManageController.java
View file @
d4ecf175
...
@@ -23,13 +23,13 @@ import java.util.Date;
...
@@ -23,13 +23,13 @@ import java.util.Date;
import
java.util.List
;
import
java.util.List
;
/**
/**
*
资讯
管理
*
投稿
管理
*
*
* @author
mei
* @author
yanglang
* @Date: 20
18/3/17 20
:30
* @Date: 20
24/12/17 16
:30
*/
*/
@Api
(
tags
=
"
资讯
管理"
)
@Api
(
tags
=
"
投稿
管理"
)
@RestController
@RestController
@RequestMapping
(
"/manage/site/classify/publication"
)
@RequestMapping
(
"/manage/site/classify/publication"
)
public
class
SitePublicationManageController
{
public
class
SitePublicationManageController
{
...
@@ -41,11 +41,11 @@ public class SitePublicationManageController {
...
@@ -41,11 +41,11 @@ public class SitePublicationManageController {
private
PortalManagePCFeignClients
portalManagePCFeignClient
;
private
PortalManagePCFeignClients
portalManagePCFeignClient
;
/**
/**
*
资讯
列表
*
投稿
列表
*
*
* @return
* @return
*/
*/
@ApiOperation
(
value
=
"查看
资讯"
,
notes
=
"查看资讯
"
,
response
=
PublicationParamVO
.
class
)
@ApiOperation
(
value
=
"查看
投稿"
,
notes
=
"查看投稿
"
,
response
=
PublicationParamVO
.
class
)
@PostMapping
(
"/list"
)
@PostMapping
(
"/list"
)
public
Response
<
Page
<
PublicationVo
>>
list
(
@RequestBody
PublicationParamVO
vo
)
{
public
Response
<
Page
<
PublicationVo
>>
list
(
@RequestBody
PublicationParamVO
vo
)
{
try
{
try
{
...
@@ -59,10 +59,10 @@ public class SitePublicationManageController {
...
@@ -59,10 +59,10 @@ public class SitePublicationManageController {
}
}
/**
/**
*
资讯
发布的列表
*
投稿
发布的列表
*
*
*/
*/
@ApiOperation
(
value
=
"查看
资讯发布列表"
,
notes
=
"查看资讯
发布列表"
,
response
=
PublicationVo
.
class
)
@ApiOperation
(
value
=
"查看
投稿发布列表"
,
notes
=
"查看投稿
发布列表"
,
response
=
PublicationVo
.
class
)
@PostMapping
(
"/release/list"
)
@PostMapping
(
"/release/list"
)
public
Response
<
Page
<
PublicationVo
>>
releaseList
(
@RequestBody
PublicationParamReleaseVO
vo
)
{
public
Response
<
Page
<
PublicationVo
>>
releaseList
(
@RequestBody
PublicationParamReleaseVO
vo
)
{
try
{
try
{
...
@@ -145,7 +145,7 @@ public class SitePublicationManageController {
...
@@ -145,7 +145,7 @@ public class SitePublicationManageController {
}
}
@PostMapping
(
"/releases"
)
@PostMapping
(
"/releases"
)
@ApiOperation
(
value
=
"
资讯发布"
,
notes
=
"资讯
发布"
)
@ApiOperation
(
value
=
"
投稿发布"
,
notes
=
"投稿
发布"
)
public
Response
<
Boolean
>
releases
(
@RequestBody
ParamVO
vo
)
{
public
Response
<
Boolean
>
releases
(
@RequestBody
ParamVO
vo
)
{
if
(
vo
==
null
)
{
if
(
vo
==
null
)
{
return
Response
.
fail
(
InternationalEnums
.
SITEINFORMATIONMANAGECONTROLLER1
.
getCode
());
return
Response
.
fail
(
InternationalEnums
.
SITEINFORMATIONMANAGECONTROLLER1
.
getCode
());
...
@@ -157,7 +157,7 @@ public class SitePublicationManageController {
...
@@ -157,7 +157,7 @@ public class SitePublicationManageController {
}
}
@PostMapping
(
"/unreleases"
)
@PostMapping
(
"/unreleases"
)
@ApiOperation
(
value
=
"
资讯取消发布"
,
notes
=
"资讯
取消发布"
)
@ApiOperation
(
value
=
"
投稿取消发布"
,
notes
=
"投稿
取消发布"
)
public
Response
<
Boolean
>
unreleases
(
@RequestBody
ParamVO
vo
)
{
public
Response
<
Boolean
>
unreleases
(
@RequestBody
ParamVO
vo
)
{
if
(
vo
==
null
)
{
if
(
vo
==
null
)
{
return
Response
.
fail
(
InternationalEnums
.
SITEINFORMATIONMANAGECONTROLLER1
.
getCode
());
return
Response
.
fail
(
InternationalEnums
.
SITEINFORMATIONMANAGECONTROLLER1
.
getCode
());
...
@@ -182,10 +182,24 @@ public class SitePublicationManageController {
...
@@ -182,10 +182,24 @@ public class SitePublicationManageController {
}
}
@GetMapping
(
"/view"
)
@GetMapping
(
"/view"
)
@ApiOperation
(
value
=
"
资讯预览"
,
notes
=
"资讯
预览"
,
response
=
PublicationVo
.
class
)
@ApiOperation
(
value
=
"
投稿预览"
,
notes
=
"投稿
预览"
,
response
=
PublicationVo
.
class
)
public
Response
<
PublicationVo
>
releases
(
@RequestParam
(
name
=
"id"
)
Long
id
)
{
public
Response
<
PublicationVo
>
releases
(
@RequestParam
(
name
=
"id"
)
Long
id
)
{
PublicationVo
info
=
publicationManageFeignClients
.
publicationView
(
id
);
PublicationVo
info
=
publicationManageFeignClients
.
publicationView
(
id
);
return
Response
.
ok
(
info
);
return
Response
.
ok
(
info
);
}
}
@GetMapping
(
"/approve"
)
@ApiOperation
(
value
=
"投稿审批通过"
,
notes
=
"投稿审批通过"
,
response
=
PublicationVo
.
class
)
public
Response
<
PublicationVo
>
approve
(
@RequestParam
(
name
=
"id"
)
Long
id
)
{
boolean
info
=
publicationManageFeignClients
.
approve
(
id
);
return
Response
.
ok
(
info
);
}
@GetMapping
(
"/unApprove"
)
@ApiOperation
(
value
=
"投稿审批不通过"
,
notes
=
"投稿审批通过"
,
response
=
PublicationVo
.
class
)
public
Response
<
PublicationVo
>
unApprove
(
@RequestParam
(
name
=
"id"
)
Long
id
)
{
boolean
info
=
publicationManageFeignClients
.
unApprove
(
id
);
return
Response
.
ok
(
info
);
}
}
}
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