This commit is contained in:
zhangchenbiao
2024-04-16 17:39:07 +08:00
parent fca4c05bac
commit cf0b5927d7
9 changed files with 42 additions and 11 deletions

View File

@@ -4,6 +4,7 @@ import com.cool.store.context.PartnerUserHolder;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.ShopService;
import com.cool.store.vo.shop.MiniShopPageVO;
import com.cool.store.vo.shop.ShopStageInfoVO;
import com.cool.store.vo.shop.StageShopCountVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -41,4 +42,11 @@ public class PCShopController {
return ResponseResult.success(shopService.getStageShopCount(lineId));
}
@ApiOperation("获取店铺的阶段信息")
@GetMapping("/getShopStageInfo")
public ResponseResult<List<ShopStageInfoVO>> getShopStageInfo(@RequestParam("shopId")Long shopId, @RequestParam(value = "shopStage", required = false)Integer shopStage) {
Long lineId = PartnerUserHolder.getUser().getLineId();
return ResponseResult.success(shopService.getShopStageInfo(lineId, shopId, shopStage));
}
}