package com.sqx.modules.industry.controller;


import com.sqx.common.utils.Result;
import com.sqx.modules.industry.entity.Industry;
import com.sqx.modules.industry.service.IndustryService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 行业管理
 * </p>
 *
 * @author wuchang
 * @since 2023-01-14
 */
@RestController
@RequestMapping("/app/industry/")
public class AppIndustryController {

    @Autowired
    private IndustryService industryService;


    @ApiOperation("获取行业列表")
    @GetMapping("getIndustryList")
    public Result getIndustryList(Industry industry) {
        industry.setIsEnable(1);

        return Result.success().put("data", industryService.getIndustryList(industry));
    }


}

