package com.ruixuan.web.controller.system;

import com.ruixuan.common.annotation.Log;
import com.ruixuan.common.constant.UserConstants;
import com.ruixuan.common.core.controller.BaseController;
import com.ruixuan.common.core.domain.AjaxResult;
import com.ruixuan.common.core.domain.ResultResponse;
import com.ruixuan.common.core.domain.entity.SysRole;
import com.ruixuan.common.core.domain.entity.SysUser;
import com.ruixuan.common.core.page.TableDataInfo;
import com.ruixuan.common.enums.BusinessType;
import com.ruixuan.common.utils.SecurityUtils;
import com.ruixuan.common.utils.StringUtils;
import com.ruixuan.common.utils.poi.ExcelUtil;
import com.ruixuan.system.domain.SysIndustryInfo;
import com.ruixuan.system.service.ISysIndustryService;
import com.ruixuan.system.service.ISysPostService;
import com.ruixuan.system.service.ISysRoleService;
import com.ruixuan.system.service.ISysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.apache.commons.lang3.ArrayUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.stream.Collectors;

/**
 * 用户信息
 * 
 * @author ruixuan
 */
@Api(tags = "系统设置-行业",description = "system-industry")
@RestController
@RequestMapping("/system/industry")
public class SysIndustryController extends BaseController
{
    @Autowired
    private ISysUserService userService;

    @Autowired
    private ISysRoleService roleService;

    @Autowired
    private ISysPostService postService;


    @Autowired
    private ISysIndustryService industryService;

    @ApiOperation(value = "查询所有行业信息",notes = "查询所有行业信息")
    @GetMapping("/getIndustryInfoList")
    public ResultResponse<List<SysIndustryInfo>> getIndustryInfoList(){

        return industryService.getIndustryInfoList();
    }




}
