商品模块代码提交

This commit is contained in:
Tankaikai
2025-02-18 18:56:04 +08:00
parent ceb5343542
commit 17768de6ba
5 changed files with 64 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ package com.czg.product.service;
import com.czg.product.dto.ProductDTO;
import com.czg.product.entity.Product;
import com.czg.product.param.ProductIsSaleParam;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
@@ -21,9 +22,10 @@ public interface ProductService extends IService<Product> {
ProductDTO getProductById(Long id);
boolean addProduct(ProductDTO dto);
boolean deleteProduct(Long id);
boolean updateProduct(ProductDTO dto);
boolean deleteProduct(Long id);
boolean onOffProduct(ProductIsSaleParam param);
}

View File

@@ -63,6 +63,18 @@ public class MiniAppHomeProductInfoVo implements Serializable {
* 会员最低售价
*/
private BigDecimal lowMemberPrice;
/**
* 是否售罄
*/
private Integer isSoldStock;
/**
* 商品库存
*/
private Integer stockNumber;
/**
* 是否上架 0-未上架1-已上架
*/
private Integer isSale;
/**
* 商品SKU列表
*/