Update PmsProductCategoryService.java
This commit is contained in:
parent
8a50b47b52
commit
f1ff4c0d5b
@ -10,25 +10,49 @@ import org.springframework.transaction.annotation.Transactional;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 产品分类Service
|
* 商品分类Service
|
||||||
* Created by macro on 2018/4/26.
|
* Created by macro on 2018/4/26.
|
||||||
*/
|
*/
|
||||||
public interface PmsProductCategoryService {
|
public interface PmsProductCategoryService {
|
||||||
|
/**
|
||||||
|
* 创建商品分类
|
||||||
|
*/
|
||||||
@Transactional
|
@Transactional
|
||||||
int create(PmsProductCategoryParam pmsProductCategoryParam);
|
int create(PmsProductCategoryParam pmsProductCategoryParam);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改商品分类
|
||||||
|
*/
|
||||||
@Transactional
|
@Transactional
|
||||||
int update(Long id, PmsProductCategoryParam pmsProductCategoryParam);
|
int update(Long id, PmsProductCategoryParam pmsProductCategoryParam);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页获取商品分类
|
||||||
|
*/
|
||||||
List<PmsProductCategory> getList(Long parentId, Integer pageSize, Integer pageNum);
|
List<PmsProductCategory> getList(Long parentId, Integer pageSize, Integer pageNum);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除商品分类
|
||||||
|
*/
|
||||||
int delete(Long id);
|
int delete(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据ID获取商品分类
|
||||||
|
*/
|
||||||
PmsProductCategory getItem(Long id);
|
PmsProductCategory getItem(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量修改导航状态
|
||||||
|
*/
|
||||||
int updateNavStatus(List<Long> ids, Integer navStatus);
|
int updateNavStatus(List<Long> ids, Integer navStatus);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量修改显示状态
|
||||||
|
*/
|
||||||
int updateShowStatus(List<Long> ids, Integer showStatus);
|
int updateShowStatus(List<Long> ids, Integer showStatus);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 以层级形式获取商品分类
|
||||||
|
*/
|
||||||
List<PmsProductCategoryWithChildrenItem> listWithChildren();
|
List<PmsProductCategoryWithChildrenItem> listWithChildren();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user