商品模块代码提交
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -63,6 +63,18 @@ public class MiniAppHomeProductInfoVo implements Serializable {
|
||||
* 会员最低售价
|
||||
*/
|
||||
private BigDecimal lowMemberPrice;
|
||||
/**
|
||||
* 是否售罄
|
||||
*/
|
||||
private Integer isSoldStock;
|
||||
/**
|
||||
* 商品库存
|
||||
*/
|
||||
private Integer stockNumber;
|
||||
/**
|
||||
* 是否上架 0-未上架,1-已上架
|
||||
*/
|
||||
private Integer isSale;
|
||||
/**
|
||||
* 商品SKU列表
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user