package com.ishop.merchant.controller;
|
|
import com.ishop.merchant.BaseController;
|
import com.ishop.model.po.EbMerchantProductCategory;
|
import com.ishop.model.vo.ProductCategoryVo;
|
import com.walker.db.page.GenericPager;
|
import com.walker.web.ResponseValue;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMethod;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.util.List;
|
|
@Deprecated
|
@RestController
|
@RequestMapping("/merchant/product/category")
|
public class MerchantProductCategoryController extends BaseController {
|
|
// @RequestMapping(value = "/list", method = RequestMethod.GET)
|
// public ResponseValue list(){
|
// long merchantId = this.getCurrentUser().getMer_id();
|
// if(merchantId <= 0){
|
// return ResponseValue.error("您不是商户,无法使用该功能");
|
// }
|
// EbMerchantProductCategory category = new EbMerchantProductCategory();
|
// category.setMerId((int)merchantId);
|
// category.setIsDel(0);
|
//
|
// GenericPager<EbMerchantProductCategory> pager = this.getMerchantProductCategoryService().selectSplit(category);
|
// return ResponseValue.success(pager);
|
// }
|
//
|
// @RequestMapping(value = "/cache/tree", method = RequestMethod.GET)
|
// public ResponseValue getCacheTree(){
|
// long merchantId = this.getCurrentUser().getMer_id();
|
// if(merchantId <= 0){
|
// return ResponseValue.error("您不是商户,无法使用该功能");
|
// }
|
// List<ProductCategoryVo> list = this.getMerProductCategoryCache().getTree(String.valueOf(merchantId));
|
// return ResponseValue.success(list);
|
// }
|
}
|