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 list = mallCategoryService.list(); return AjaxResult.success(list); } }