xuekang
2024-05-13 15a0280ae9e7db96fdf0744c722d214d2cb5a0e5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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<List<Map>> getIndustryTree(Integer status) {
        Map map = new HashMap();
        if(status == null){
            map.put("status",1);
        }
        List<Map> list = storeIndustryManageService.getIndustryTree(map);
        return new CommonResult<>(list);
    }
}