// Path: naive-facade/src/main/java/com/goribun/navie/facade/dto/UserDTO.java
// @Accessors(chain = true)
// @Setter
// @Getter
// public class UserDTO {
//     private Integer id;
//     private String name;
// 
//     public Integer getId() {
//         return id;
//     }
// 
//     public void setId(Integer id) {
//         this.id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// }
// 
// Path: naive-facade/src/main/java/com/goribun/navie/facade/intefaces/IUserService.java
// public interface IUserService {
//     List<UserDTO> getUsers();
// 
//     void addUser(UserDTO userDTO);
// }


import java.util.ArrayList;
import java.util.List;
import com.goribun.navie.facade.dto.UserDTO;
import com.goribun.navie.facade.intefaces.IUserService;
import com.goribun.naive.server.annotations.RpcServer;
import org.springframework.stereotype.Service;
package com.goribum.naive.services;



/**
 * @author chenchuan@autohome.com.cn
 * @create 2017-04-12-上午12:25
 * @description
 */
@Service
@RpcServer
public class UserServiceImpl implements IUserService {
// Path: naive-facade/src/main/java/com/goribun/navie/facade/dto/UserDTO.java
// @Accessors(chain = true)
// @Setter
// @Getter
// public class UserDTO {
//     private Integer id;
//     private String name;
// 
//     public Integer getId() {
//         return id;
//     }
// 
//     public void setId(Integer id) {
//         this.id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// }
// 
// Path: naive-facade/src/main/java/com/goribun/navie/facade/intefaces/IUserService.java
// public interface IUserService {
//     List<UserDTO> getUsers();
// 
//     void addUser(UserDTO userDTO);
// }


// Path: naive-test/src/main/java/com/goribum/naive/services/UserServiceImpl.java
import java.util.ArrayList;
import java.util.List;
import com.goribun.navie.facade.dto.UserDTO;
import com.goribun.navie.facade.intefaces.IUserService;
import com.goribun.naive.server.annotations.RpcServer;
import org.springframework.stereotype.Service;

package com.goribum.naive.services;



/**
 * @author chenchuan@autohome.com.cn
 * @create 2017-04-12-上午12:25
 * @description
 */
@Service
@RpcServer
public class UserServiceImpl implements IUserService {
    private static List<UserDTO> list = new ArrayList<UserDTO>();