记得上下班打卡 | git大法好,push需谨慎

Commit 0f61e0cd authored by 张国柄's avatar 张国柄

~API:平台分类+样例数据;

parent 3be04187
...@@ -43,20 +43,19 @@ public class GoblinStoreMgtExtraController { ...@@ -43,20 +43,19 @@ public class GoblinStoreMgtExtraController {
@ApiOperationSupport(order = 1) @ApiOperationSupport(order = 1)
@ApiOperation(value = "平台商品分类") @ApiOperation(value = "平台商品分类")
@GetMapping("sg_categorys") @GetMapping("sg_categorys")
public ResponseDto<List<GoblinSelfGoodsCategoryVo>> selfGoodsCategoryList(@RequestParam String cateId) { public ResponseDto<List<GoblinSelfGoodsCategoryVo>> selfGoodsCategoryList() {
if (StringUtils.isBlank(cateId)) return ResponseDto.success();
// TODO: 2022/1/11 redis+mongo.get // TODO: 2022/1/11 redis+mongo.get
ArrayList<GoblinSelfGoodsCategoryVo> selfGoodsCategoryVoList = ObjectUtil.getGoblinSelfGoodsCategoryVoArrayList(); ArrayList<GoblinSelfGoodsCategoryVo> selfGoodsCategoryVos = ObjectUtil.getGoblinSelfGoodsCategoryVoArrayList();
selfGoodsCategoryVoList.add( selfGoodsCategoryVos.add(
GoblinSelfGoodsCategoryVo.getNew().setCateId("10000").setName("1级").setSort(1).setGrade("1").setNeIsbn("0").setCatePid(null) GoblinSelfGoodsCategoryVo.getNew().setCateId("10000").setName("1级").setSort(1).setGrade("1").setNeIsbn("0").setCatePid(null)
); );
selfGoodsCategoryVoList.add( selfGoodsCategoryVos.add(
GoblinSelfGoodsCategoryVo.getNew().setCateId("10100").setName("2级").setSort(1).setGrade("2").setNeIsbn("0").setCatePid("10000") GoblinSelfGoodsCategoryVo.getNew().setCateId("10100").setName("2级").setSort(1).setGrade("2").setNeIsbn("0").setCatePid("10000")
); );
selfGoodsCategoryVoList.add( selfGoodsCategoryVos.add(
GoblinSelfGoodsCategoryVo.getNew().setCateId("10101").setName("3级").setSort(1).setGrade("3").setNeIsbn("1").setCatePid("10100") GoblinSelfGoodsCategoryVo.getNew().setCateId("10101").setName("3级").setSort(1).setGrade("3").setNeIsbn("1").setCatePid("10100")
); );
return ResponseDto.success(null); return ResponseDto.success(selfGoodsCategoryVos);
} }
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment