package com.nuvole.four.controller.app; import com.nuvole.common.domain.result.CommonResult; import com.nuvole.four.controller.BaseController; import com.nuvole.four.service.impl.StoreIndustryManageServiceImpl; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.HashMap; import java.util.List; import java.util.Map; /** * @Desc: app行业controller * @Author: dqh * @Date: 2024-04-18 **/ @Api(value = "APP行业查询", tags = "APP行业查询") @Slf4j @RestController @RequestMapping(value = "/v1/four/manager/app/store/industry/manage") public class AppStoreIndustryManageController extends BaseController { @Autowired private StoreIndustryManageServiceImpl storeIndustryManageService; /** * 方法描述: 查询所有行业树 * * @date 2024-04-12 18:43 **/ @ApiOperation(value = "查询所有行业树", notes = "查询所有行业树") @GetMapping("/getIndustryTree") public CommonResult> getIndustryTree(Integer status) { Map map = new HashMap(); if(status == null){ map.put("status",1); } List list = storeIndustryManageService.getIndustryTree(map); return new CommonResult<>(list); } }