Administrator
2025-07-21 b65ec94141b46eee27eab3e78e7551ab737a93e0
refactor(mall): 优化衣服分类信息接口返回

- 移除了全部分类的 type 字段- 为 buildApiClothesCategoryInfoVo 方法增加 type 参数,统一设置分类类型
- 调整了男女分类的 type值,全部分类设为 2,男女分类设为 1
1 files modified
1 ■■■■ changed files
src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java 1 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/mall/service/impl/ApiClothesSocialServiceImpl.java
@@ -69,6 +69,7 @@
        ApiClothesCategoryInfoVo apiClothesCategoryInfoVo = new ApiClothesCategoryInfoVo();
        apiClothesCategoryInfoVo.setId(0L);
        apiClothesCategoryInfoVo.setName("全部");
        apiClothesCategoryInfoVo.setType(2);
        vos.add(apiClothesCategoryInfoVo);
        List<ClothesSocialCategory> list = clothesSocialCategoryMapper.selectList(
                Wrappers.lambdaQuery(ClothesSocialCategory.class)