|
|
@ -23,9 +23,11 @@ import com.epmet.commons.tools.enums.RequirePermissionEnum; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
|
import com.epmet.commons.tools.scan.result.SyncScanResult; |
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|
|
|
import com.epmet.dto.ArticleContentDTO; |
|
|
|
import com.epmet.dto.form.*; |
|
|
|
import com.epmet.dto.result.*; |
|
|
|
import com.epmet.service.ArticleOperateRecordService; |
|
|
@ -228,9 +230,10 @@ public class ArticleController { |
|
|
|
*/ |
|
|
|
@PostMapping("publishedarticlelist") |
|
|
|
@RequirePermission(requirePermission = RequirePermissionEnum.WORK_PARTY_VOICE_PUBLISHED_LIST) |
|
|
|
public Result<PageData> publishedArticleList(@LoginUser TokenDto tokenDto, @RequestBody PublishedListFormDTO formDTO) { |
|
|
|
public Result<List<PublishedListResultDTO>> publishedArticleList(@LoginUser TokenDto tokenDto, @RequestBody PublishedListFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
|
return new Result<PageData>().ok(articleService.publishedArticleList(tokenDto, formDTO)); |
|
|
|
List<PublishedListResultDTO> list = articleService.publishedArticleList(tokenDto, formDTO).getList(); |
|
|
|
return new Result<List<PublishedListResultDTO>>().ok(list); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -244,9 +247,10 @@ public class ArticleController { |
|
|
|
*/ |
|
|
|
@PostMapping("offlinearticlelist") |
|
|
|
@RequirePermission(requirePermission = RequirePermissionEnum.WORK_PARTY_VOICE_OFFLINE_LIST) |
|
|
|
public Result<PageData> offLineList(@LoginUser TokenDto tokenDto, @RequestBody OfflineListFormDTO formDTO) { |
|
|
|
public Result<List<OfflineListResultDTO> > offLineList(@LoginUser TokenDto tokenDto, @RequestBody OfflineListFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
|
return new Result<PageData>().ok(articleService.offlineList(tokenDto, formDTO)); |
|
|
|
List<OfflineListResultDTO> list = articleService.offlineList(tokenDto, formDTO).getList(); |
|
|
|
return new Result<List<OfflineListResultDTO> >().ok(list); |
|
|
|
} |
|
|
|
/** |
|
|
|
* @Description 根据网格Id查找置顶文章的相关信息列表 用处:居民端首页轮播 |
|
|
|