|
|
@@ -1,18 +1,23 @@
|
|
|
package org.dromara.product.controller.mini;
|
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
+import org.dromara.common.core.domain.R;
|
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
+import org.dromara.product.domain.bo.PcProductBo;
|
|
|
import org.dromara.product.domain.bo.ProductBaseBo;
|
|
|
import org.dromara.product.domain.vo.PcProductVo;
|
|
|
+import org.dromara.product.domain.vo.ProductBaseVo;
|
|
|
import org.dromara.product.service.IProductBaseService;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
/**
|
|
|
* 首页
|
|
|
+ *
|
|
|
* @author
|
|
|
* @date 2026/1/26 下午6:41
|
|
|
*/
|
|
|
@@ -27,9 +32,29 @@ public class MiniProductController {
|
|
|
|
|
|
/**
|
|
|
* 获取客户商品池的商品
|
|
|
- * */
|
|
|
+ */
|
|
|
@GetMapping("/getCustomerProductPage")
|
|
|
- public TableDataInfo<PcProductVo> getCustomerProductPage(ProductBaseBo productBaseBo, PageQuery pageQuery){
|
|
|
+ public TableDataInfo<PcProductVo> getCustomerProductPage(ProductBaseBo productBaseBo, PageQuery pageQuery) {
|
|
|
return productBaseService.getSitePoolProductList(productBaseBo, pageQuery);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * mini获取商品列表
|
|
|
+ *
|
|
|
+ * @param bo
|
|
|
+ * @param pageQuery
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/getDiyProductPage")
|
|
|
+ public TableDataInfo<PcProductVo> getDiyProductPage(PcProductBo bo, PageQuery pageQuery) {
|
|
|
+ return productBaseService.getPcProductPage(bo, pageQuery);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * mini 商品详情
|
|
|
+ */
|
|
|
+ @GetMapping("getProductDetail/{productId}")
|
|
|
+ public R<ProductBaseVo> getProductDetail(@PathVariable Long productId) {
|
|
|
+ return R.ok(productBaseService.queryById(productId));
|
|
|
+ }
|
|
|
}
|