package com.newfiber.api.pc.model; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * Created by XuChengChao on 2017/5/17. */ @Data @AllArgsConstructor @NoArgsConstructor public class Users implements Serializable{ private String loginname; private String name; private String password; private int age; private String sex; private String phoneNum; public Users(String loginname, String name) { this.loginname = loginname; this.name = name; } public static List<Users> getSystemManagerUser(){ List<Users> userList = new ArrayList<>(); userList.add(new Users(Administrator.Admin.getNo(), Administrator.Admin.getName())); return userList; } @AllArgsConstructor enum Administrator{ /** * */ Admin("Admin", "系统管理员"); private final String no; private final String name; public String getNo() { return no; } public String getName() { return name; } } }