package com.artfess.portal.controller;

import com.artfess.base.controller.BaseController;
import com.artfess.portal.model.SysIndexNewsColumn;
import com.artfess.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();
    }
}
