| | |
| | | import vip.xiaonuo.core.enums.LogAnnotionOpTypeEnum; |
| | | import vip.xiaonuo.core.pojo.response.ResponseData; |
| | | import vip.xiaonuo.core.pojo.response.SuccessResponseData; |
| | | import vip.xiaonuo.modular.blogarticletype.param.BlogArticleTypeVo; |
| | | import vip.xiaonuo.modular.blogarticletype.entity.BlogArticleTypeVo; |
| | | import vip.xiaonuo.modular.blogarticletype.service.BlogArticleTypeService; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | public ResponseData queryBlogArticleType() { |
| | | |
| | | List<BlogArticleTypeVo> list= blogArticleTypeService.listCount(); |
| | | // List<BlogArticleTypeVo> list = blogArticleTypeService.lambdaQuery() |
| | | // .eq(BlogArticleType::getIsEnable, MyConstant.Yes) |
| | | // .orderByAsc(BlogArticleType::getTopValue) |
| | | // .orderByDesc(BlogArticleType::getCreateDate) |
| | | // .list().stream().map(e -> { |
| | | // BlogArticleTypeVo vo = new BlogArticleTypeVo(); |
| | | // BeanUtil.copyProperties(e, vo); |
| | | // return vo; |
| | | // }).collect(Collectors.toList()); |
| | | |
| | | |
| | | return new SuccessResponseData(list); |
| | | } |