package com.hotent.portal.controller;

import com.hotent.base.controller.BaseController;
import com.hotent.base.util.BeanUtils;
import com.hotent.portal.model.PortalNewsTree;
import com.hotent.portal.model.SysIndexNewsColumn;
import com.hotent.portal.persistence.manager.SysIndexNewsColumnManager;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/sysIndexNewsColumn/v1/")
public class SysIndexNewsColumnController extends BaseController<SysIndexNewsColumnManager, SysIndexNewsColumn> {

    @RequestMapping(value="getAllList", method= RequestMethod.GET, produces = { "application/json; charset=utf-8" })
    @ApiOperation(value = "获得树形菜单", httpMethod = "GET", notes = "获得树形菜单")
    public List<SysIndexNewsColumn> getAllList() {
        return baseService.getAll();
    }
}
