content: package com.cn.xmf.job.admin.user.service;
  
  import com.alibaba.fastjson.JSONObject;
  import com.cn.xmf.base.model.Partion;
  import com.cn.xmf.model.user.User;
  import org.springframework.cloud.openfeign.FeignClient;
  import org.springframework.http.MediaType;
  import org.springframework.web.bind.annotation.RequestBody;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RequestParam;
  
  import java.util.List;
  
  /**
   * Service(用户信息)
   *
   * @author rufei.cn
   * @version 2018-09-11
   */
  @SuppressWarnings("all")
  
  @FeignClient(value = "${base-service.user-service}")// 配置远程服务名以及自定义权限验证配置
  @RequestMapping("/server/user/")// 配置远程服务路径
  
  public interface UserService {
  
      /**
       * list:(查询用户信息 带分页数据)
       *
       * @return
       * @author rufei.cn
       */
      @RequestMapping(value = "getList", consumes = MediaType.APPLICATION_JSON_VALUE)
      Partion getList(@RequestBody JSONObject map);
  
  
      /**
       * getUserList:(查询用户信息 不带分页数据)
       *
       * @return
       * @author rufei.cn
       */
      @RequestMapping(value = "getUserList", consumes = MediaType.APPLICATION_JSON_VALUE)
      List<User> getUserList(@RequestBody User user);
  
  
      /**
       * getUser:(查询用户信息单个实体数据)
       *
       * @return
       * @author rufei.cn
       */
      @RequestMapping(value = "getUser", consumes = MediaType.APPLICATION_JSON_VALUE)
      public User getUser(@RequestBody User user);
  
      /**
       * save:(保存用户信息数据)
       *
       * @return
       * @author rufei.cn
       */
      @RequestMapping(value = "save", consumes = MediaType.APPLICATION_JSON_VALUE)
      User save(@RequestBody User user);
  
  
      /**
       * delete:(删除用户信息数据)
       *
       * @return
       * @author rufei.cn
       */
      @RequestMapping(value = "delete", consumes = MediaType.APPLICATION_JSON_VALUE)
      boolean delete(@RequestParam("id") Long id);
  
  }