13 changed files with 110 additions and 62 deletions
@ -1 +1 @@ |
|||
Subproject commit f49128405cd591b9aab7f129df01518c5aea143e |
|||
Subproject commit 14ba01162799b397ec4cae757f29790fc88df9cb |
@ -0,0 +1,57 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.elink.esua.epdc.controller; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.constant.Constant; |
|||
import com.elink.esua.epdc.commons.tools.utils.Result; |
|||
import com.elink.esua.epdc.dto.epdc.result.NewsCategoryResultDTO; |
|||
import com.elink.esua.epdc.service.NewsCategoryService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 新闻类别表 |
|||
* |
|||
* @author qu qu@elink-cn.com |
|||
* @since v1.0.0 2019-09-04 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping(Constant.EPDC_APP + "newscategory") |
|||
public class EpdcAppNewsCategoryController { |
|||
|
|||
@Autowired |
|||
private NewsCategoryService newsCategoryService; |
|||
|
|||
/** |
|||
* 居民端 - 根据版块编码,查询下属子类别 |
|||
* |
|||
* @param sectionCode |
|||
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.NewsCategoryResultDTO>> |
|||
* @author work@yujt.net.cn |
|||
* @date 2020/6/23 17:56 |
|||
*/ |
|||
@GetMapping("listCategoryBySection/{sectionCode}") |
|||
public Result<List<NewsCategoryResultDTO>> listCategoryCodeBySection(@PathVariable("sectionCode") String sectionCode) { |
|||
List<NewsCategoryResultDTO> result = newsCategoryService.listCategoryCodeBySection(sectionCode); |
|||
return new Result().ok(result); |
|||
} |
|||
|
|||
} |
Loading…
Reference in new issue