// Path: xbin-store-cloud-service-admin-api/src/main/java/cn/binux/admin/service/ContentService.java
// @FeignClient(value = "xbin-store-cloud-service-admin",fallback = ContentServiceHystrix.class)
// public interface ContentService {
// 
//     @RequestMapping(value = "/getCategoryList",method = RequestMethod.POST)
//     Map<String, Object> getCategoryList(
//             @RequestParam("sEcho")          Integer sEcho, 
//             @RequestParam("iDisplayStart")  Integer iDisplayStart, 
//             @RequestParam("iDisplayLength") Integer iDisplayLength
//     );
// 
//     @RequestMapping(value = "/save/category",method = RequestMethod.POST)
//     XbinResult saveCategory(
//             @RequestParam("id")             String id, 
//             @RequestParam("name")           String name, 
//             @RequestParam("sort_order")     Integer sort_order
//     );
// 
//     @RequestMapping(value = "/getCategorySecondary",method = RequestMethod.POST)
//     Map<String,Object> getCategorySecondaryList(
//             @RequestParam("sEcho")          Integer sEcho, 
//             @RequestParam("iDisplayStart")  Integer iDisplayStart,
//             @RequestParam("iDisplayLength") Integer iDisplayLength
//     );
// 
//     @RequestMapping(value = "/getSearchCategorySecondaryList",method = RequestMethod.POST)
//     Map<String,Object> getSearchCategorySecondaryList(
//             @RequestParam("sSearch")        String sSearch, 
//             @RequestParam("sEcho")          Integer sEcho, 
//             @RequestParam("iDisplayStart")  Integer iDisplayStart, 
//             @RequestParam("iDisplayLength") Integer iDisplayLength
//     );
// 
//     @RequestMapping(value = "/saveCategorySecondary",method = RequestMethod.POST)
//     XbinResult saveCategorySecondary(TbCategorySecondary categorySecondary);
// }


import cn.binux.admin.service.ContentService;
import cn.binux.mapper.TbCategoryMapper;
import cn.binux.mapper.TbCategorySecondaryMapper;
import cn.binux.pojo.*;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
package cn.binux.admin.service.impl;



/**
 * 内容维护 Service
 *
 * @author xubin.
 * @create 2017-04-28
 */

@Api(value = "API - ContentServiceImpl", description = "内容操作")
@RestController
// Path: xbin-store-cloud-service-admin-api/src/main/java/cn/binux/admin/service/ContentService.java
// @FeignClient(value = "xbin-store-cloud-service-admin",fallback = ContentServiceHystrix.class)
// public interface ContentService {
// 
//     @RequestMapping(value = "/getCategoryList",method = RequestMethod.POST)
//     Map<String, Object> getCategoryList(
//             @RequestParam("sEcho")          Integer sEcho, 
//             @RequestParam("iDisplayStart")  Integer iDisplayStart, 
//             @RequestParam("iDisplayLength") Integer iDisplayLength
//     );
// 
//     @RequestMapping(value = "/save/category",method = RequestMethod.POST)
//     XbinResult saveCategory(
//             @RequestParam("id")             String id, 
//             @RequestParam("name")           String name, 
//             @RequestParam("sort_order")     Integer sort_order
//     );
// 
//     @RequestMapping(value = "/getCategorySecondary",method = RequestMethod.POST)
//     Map<String,Object> getCategorySecondaryList(
//             @RequestParam("sEcho")          Integer sEcho, 
//             @RequestParam("iDisplayStart")  Integer iDisplayStart,
//             @RequestParam("iDisplayLength") Integer iDisplayLength
//     );
// 
//     @RequestMapping(value = "/getSearchCategorySecondaryList",method = RequestMethod.POST)
//     Map<String,Object> getSearchCategorySecondaryList(
//             @RequestParam("sSearch")        String sSearch, 
//             @RequestParam("sEcho")          Integer sEcho, 
//             @RequestParam("iDisplayStart")  Integer iDisplayStart, 
//             @RequestParam("iDisplayLength") Integer iDisplayLength
//     );
// 
//     @RequestMapping(value = "/saveCategorySecondary",method = RequestMethod.POST)
//     XbinResult saveCategorySecondary(TbCategorySecondary categorySecondary);
// }


// Path: xbin-store-cloud-service-admin/src/main/java/cn/binux/admin/service/impl/ContentServiceImpl.java
import cn.binux.admin.service.ContentService;
import cn.binux.mapper.TbCategoryMapper;
import cn.binux.mapper.TbCategorySecondaryMapper;
import cn.binux.pojo.*;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

package cn.binux.admin.service.impl;



/**
 * 内容维护 Service
 *
 * @author xubin.
 * @create 2017-04-28
 */

@Api(value = "API - ContentServiceImpl", description = "内容操作")
@RestController
public class ContentServiceImpl implements ContentService {