master
王皓雯 6 years ago
parent 14a88e2b13
commit e7f7dcfe92

@ -0,0 +1,30 @@
package com.macro.mall.service;
import com.macro.mall.dto.PmsBrandParam;
import com.macro.mall.model.PmsBrand;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* ÉÌÆ·Æ·ÅÆService
*/
public interface PmsBrandService {
List<PmsBrand> listAllBrand();
int createBrand(PmsBrandParam pmsBrandParam);
@Transactional
int updateBrand(Long id, PmsBrandParam pmsBrandParam);
int deleteBrand(Long id);
int deleteBrand(List<Long> ids);
List<PmsBrand> listBrand(String keyword, int pageNum, int pageSize);
PmsBrand getBrand(Long id);
int updateShowStatus(List<Long> ids, Integer showStatus);
int updateFactoryStatus(List<Long> ids, Integer factoryStatus);
}

@ -0,0 +1,23 @@
package com.macro.mall.service;
import com.macro.mall.dto.PmsProductAttributeCategoryItem;
import com.macro.mall.model.PmsProductAttributeCategory;
import java.util.List;
/**
* ÉÌÆ·ÊôÐÔ·ÖÀàService
*/
public interface PmsProductAttributeCategoryService {
int create(String name);
int update(Long id, String name);
int delete(Long id);
PmsProductAttributeCategory getItem(Long id);
List<PmsProductAttributeCategory> getList(Integer pageSize, Integer pageNum);
List<PmsProductAttributeCategoryItem> getListWithAttr();
}

@ -0,0 +1,42 @@
package com.macro.mall.service;
import com.macro.mall.dto.PmsProductAttributeParam;
import com.macro.mall.dto.ProductAttrInfo;
import com.macro.mall.model.PmsProductAttribute;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* Service
*/
public interface PmsProductAttributeService {
/**
*
* @param cid id
* @param type 0->2->
* @return
*/
List<PmsProductAttribute> getList(Long cid, Integer type, Integer pageSize, Integer pageNum);
/**
*
*/
@Transactional
int create(PmsProductAttributeParam pmsProductAttributeParam);
/**
*
*/
int update(Long id, PmsProductAttributeParam productAttributeParam);
/**
*
*/
PmsProductAttribute getItem(Long id);
@Transactional
int delete(List<Long> ids);
List<ProductAttrInfo> getProductAttrInfo(Long productCategoryId);
}

@ -0,0 +1,33 @@
package com.macro.mall.service;
import com.macro.mall.dto.PmsProductCategoryParam;
import com.macro.mall.dto.PmsProductCategoryWithChildrenItem;
import com.macro.mall.model.PmsProductCategory;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* ²úÆ··ÖÀàService
*/
public interface PmsProductCategoryService {
@Transactional
int create(PmsProductCategoryParam pmsProductCategoryParam);
@Transactional
int update(Long id, PmsProductCategoryParam pmsProductCategoryParam);
List<PmsProductCategory> getList(Long parentId, Integer pageSize, Integer pageNum);
int delete(Long id);
PmsProductCategory getItem(Long id);
int updateNavStatus(List<Long> ids, Integer navStatus);
int updateShowStatus(List<Long> ids, Integer showStatus);
List<PmsProductCategoryWithChildrenItem> listWithChildren();
}

@ -0,0 +1,72 @@
package com.macro.mall.service;
import com.macro.mall.dto.PmsProductParam;
import com.macro.mall.dto.PmsProductQueryParam;
import com.macro.mall.dto.PmsProductResult;
import com.macro.mall.model.PmsProduct;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* Service
*/
public interface PmsProductService {
/**
*
*/
@Transactional(isolation = Isolation.DEFAULT,propagation = Propagation.REQUIRED)
int create(PmsProductParam productParam);
/**
*
*/
PmsProductResult getUpdateInfo(Long id);
/**
*
*/
@Transactional
int update(Long id, PmsProductParam productParam);
/**
*
*/
List<PmsProduct> list(PmsProductQueryParam productQueryParam, Integer pageSize, Integer pageNum);
/**
*
* @param ids id
* @param verifyStatus
* @param detail
*/
@Transactional
int updateVerifyStatus(List<Long> ids, Integer verifyStatus, String detail);
/**
*
*/
int updatePublishStatus(List<Long> ids, Integer publishStatus);
/**
*
*/
int updateRecommendStatus(List<Long> ids, Integer recommendStatus);
/**
*
*/
int updateNewStatus(List<Long> ids, Integer newStatus);
/**
*
*/
int updateDeleteStatus(List<Long> ids, Integer deleteStatus);
/**
*
*/
List<PmsProduct> list(String keyword);
}

@ -0,0 +1,20 @@
package com.macro.mall.service;
import com.macro.mall.model.PmsSkuStock;
import java.util.List;
/**
* skuService
*/
public interface PmsSkuStockService {
/**
* idskuCode
*/
List<PmsSkuStock> getList(Long pid, String keyword);
/**
*
*/
int update(Long pid, List<PmsSkuStock> skuStockList);
}
Loading…
Cancel
Save