|
|
|
|
@ -13,17 +13,17 @@ public class InMemoryUserRepository implements UserRepository {
|
|
|
|
|
public InMemoryUserRepository() {
|
|
|
|
|
// 初始化预定义的9个用户账户
|
|
|
|
|
// 小学老师
|
|
|
|
|
userDatabase.put("张三1", new User("张三1", "123", EducationLevel.PRIMARY));
|
|
|
|
|
userDatabase.put("张三2", new User("张三2", "123", EducationLevel.PRIMARY));
|
|
|
|
|
userDatabase.put("张三3", new User("张三3", "123", EducationLevel.PRIMARY));
|
|
|
|
|
userDatabase.put("张三1", new User("张三1", "123", "小学"));
|
|
|
|
|
userDatabase.put("张三2", new User("张三2", "123", "小学"));
|
|
|
|
|
userDatabase.put("张三3", new User("张三3", "123", "小学"));
|
|
|
|
|
// 初中老师
|
|
|
|
|
userDatabase.put("李四1", new User("李四1", "123", EducationLevel.MIDDLE));
|
|
|
|
|
userDatabase.put("李四2", new User("李四2", "123", EducationLevel.MIDDLE));
|
|
|
|
|
userDatabase.put("李四3", new User("李四3", "123", EducationLevel.MIDDLE));
|
|
|
|
|
userDatabase.put("李四1", new User("李四1", "123", "初中"));
|
|
|
|
|
userDatabase.put("李四2", new User("李四2", "123", "初中"));
|
|
|
|
|
userDatabase.put("李四3", new User("李四3", "123", "初中"));
|
|
|
|
|
// 高中老师
|
|
|
|
|
userDatabase.put("王五1", new User("王五1", "123", EducationLevel.HIGH));
|
|
|
|
|
userDatabase.put("王五2", new User("王五2", "123", EducationLevel.HIGH));
|
|
|
|
|
userDatabase.put("王五3", new User("王五3", "123", EducationLevel.HIGH));
|
|
|
|
|
userDatabase.put("王五1", new User("王五1", "123", "高中"));
|
|
|
|
|
userDatabase.put("王五2", new User("王五2", "123", "高中"));
|
|
|
|
|
userDatabase.put("王五3", new User("王五3", "123", "高中"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|