zjh
2025-02-26 07e99128114a015c11fe21858f21f00306216472
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
package com.ltkj.web.controller.mall;
 
import com.ltkj.common.annotation.Log;
import com.ltkj.common.core.controller.BaseController;
import com.ltkj.common.core.domain.AjaxResult;
import com.ltkj.common.core.page.TableDataInfo;
import com.ltkj.common.enums.BusinessType;
import com.ltkj.common.utils.poi.ExcelUtil;
import com.ltkj.mall.domain.MallCategory;
import com.ltkj.mall.service.IMallCategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.aspectj.weaver.loadtime.Aj;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
 
import javax.servlet.http.HttpServletResponse;
import java.util.List;
 
/**
 * 类目Controller
 *
 * @author ltkj_赵佳豪&李格
 * @date 2023-07-12
 */
@RestController
@RequestMapping("/cus/category")
@Api(tags = "mall类目")
public class WxMallCategoryController extends BaseController {
    @Autowired
    private IMallCategoryService mallCategoryService;
 
    /**
     * 查询类目列表
     */
    @GetMapping("/getList")
    @ApiOperation(value = "查询类目列表")
    public AjaxResult getList() {
        List<MallCategory> list = mallCategoryService.list();
        return AjaxResult.success(list);
    }
 
}